Class: ItunesController::CreateControllerCommand

Inherits:
ServerCommand show all
Defined in:
lib/itunesController/controllserver.rb

Instance Attribute Summary

Attributes inherited from ServerCommand

#name, #requiredLoginState, #singleThreaded

Instance Method Summary collapse

Methods inherited from ServerCommand

#processLine

Constructor Details

#initialize(controllerCreator) ⇒ CreateControllerCommand

The constructor

Parameters:



441
442
443
444
# File 'lib/itunesController/controllserver.rb', line 441

def initialize(controllerCreator)
    super("CreateController",nil,false,nil,nil)
    @controllerCreator=controllerCreator
end

Instance Method Details

#executeSingleThreaded(state) ⇒ Object



450
451
452
# File 'lib/itunesController/controllserver.rb', line 450

def executeSingleThreaded(state)
    @controller=@controllerCreator.createController
end

#getControllerObject



454
455
456
# File 'lib/itunesController/controllserver.rb', line 454

def getController()
    return @controller
end

#processData(line, io) ⇒ Object



446
447
448
# File 'lib/itunesController/controllserver.rb', line 446

def processData(line,io)            
    return true, "220 ok\r\n"
end