org.molwind.servlet
Class GetImageCommand

java.lang.Object
  extended by org.molwind.servlet.AbstractCommand
      extended by org.molwind.servlet.GetImageCommand
All Implemented Interfaces:
Command

public class GetImageCommand
extends AbstractCommand

GetWorldNamesCommand implements a Command which can be invoked by a client via Webservice to get Images

Author:
Oktay Degirmenci

Field Summary
static java.lang.String DEFAULT_COMMAND
          Default name of a command
static java.lang.String DEFAULT_WORLD
          Default name of a Molwind world.
static java.lang.String IMAGE_PARAM
          Name of the parameter, which includes the name of the world.
static java.lang.String PARAM_COMMAND
          Name of the parameter, which includes the name of the called command
static java.lang.String PARAM_WORLD
           
 
Constructor Summary
GetImageCommand()
           
 
Method Summary
 void execute(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Executes the GetImageCommand
 java.lang.String getImageLocation()
          Get the ImageLocation value.
 void setImageLocation(java.lang.String newImageLocation)
          Set the ImageLocation value.
 
Methods inherited from class org.molwind.servlet.AbstractCommand
writeXML, writeXML
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

IMAGE_PARAM

public static final java.lang.String IMAGE_PARAM
Name of the parameter, which includes the name of the world.

See Also:
Constant Field Values

PARAM_WORLD

public static final java.lang.String PARAM_WORLD
See Also:
Constant Field Values

DEFAULT_WORLD

public static final java.lang.String DEFAULT_WORLD
Default name of a Molwind world.

See Also:
Constant Field Values

PARAM_COMMAND

public static final java.lang.String PARAM_COMMAND
Name of the parameter, which includes the name of the called command

See Also:
Constant Field Values

DEFAULT_COMMAND

public static final java.lang.String DEFAULT_COMMAND
Default name of a command

See Also:
Constant Field Values
Constructor Detail

GetImageCommand

public GetImageCommand()
Method Detail

getImageLocation

public java.lang.String getImageLocation()
Get the ImageLocation value.

Returns:
the ImageLocation value.

setImageLocation

public void setImageLocation(java.lang.String newImageLocation)
Set the ImageLocation value.

Parameters:
newImageLocation - The new ImageLocation value.

execute

public void execute(javax.servlet.http.HttpServletRequest request,
                    javax.servlet.http.HttpServletResponse response)
Executes the GetImageCommand

Parameters:
request - an HttpServletRequest object, contains the request the client has made of the servlet
response - an HttpServletResponse object, contains the response the client will get from the servlet


Copyright © 2008-2010. All Rights Reserved.