|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.xins.common.manageable.Manageable
org.xins.server.CallingConvention
org.xins.server.CustomCallingConvention
org.xins.server.frontend.FrontendCallingConvention
XINS Front-end Framework calling convention.
| Nested Class Summary |
| Nested classes inherited from class org.xins.common.manageable.Manageable |
Manageable.State |
| Field Summary |
| Fields inherited from class org.xins.common.manageable.Manageable |
BOOTSTRAPPED, BOOTSTRAPPING, DEINITIALIZING, INITIALIZING, UNUSABLE, USABLE |
| Constructor Summary | |
FrontendCallingConvention(API api)
Creates a new FrontendCallingConvention instance. |
|
| Method Summary | |
protected void |
bootstrapImpl(PropertyReader bootstrapProperties)
Performs the bootstrap procedure (actual implementation). |
protected FunctionRequest |
convertRequestImpl(HttpServletRequest httpRequest)
Converts an HTTP request to a XINS request (implementation method). |
protected void |
convertResultImpl(FunctionResult xinsResult,
HttpServletResponse httpResponse,
HttpServletRequest httpRequest)
Converts a XINS result to an HTTP response (implementation method). |
protected void |
initImpl(PropertyReader runtimeProperties)
Performs the initialization procedure (actual implementation). |
| Methods inherited from class org.xins.server.CustomCallingConvention |
getAPI, getSupportedMethods, getSupportedMethods, matches, parseXMLRequest, parseXMLRequest |
| Methods inherited from class org.xins.common.manageable.Manageable |
assertUsable, bootstrap, deinit, deinitImpl, getState, init, isBootstrapped, isUsable |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public FrontendCallingConvention(API api)
throws IllegalArgumentException
FrontendCallingConvention instance.
api - the API, needed for the SOAP messages, cannot be null.
IllegalArgumentException - if api == null.| Method Detail |
protected void bootstrapImpl(PropertyReader bootstrapProperties)
throws MissingRequiredPropertyException,
InvalidPropertyValueException,
BootstrapException
ManageableManageable.bootstrap(PropertyReader), the state and
the argument will have been checked and the state will have been set to
Manageable.BOOTSTRAPPING.
The implementation of this method in class Manageable is
empty.
bootstrapImpl in class ManageablebootstrapProperties - the bootstrap properties, not null.
BootstrapException - if the bootstrapping failed for any other reason.
MissingRequiredPropertyException - if a required property is not given.
InvalidPropertyValueException - if the value of a certain property is invalid.
protected void initImpl(PropertyReader runtimeProperties)
throws MissingRequiredPropertyException,
InvalidPropertyValueException,
InitializationException
ManageableManageable.init(PropertyReader), the state and the
argument will have been checked and the state will have been set to
Manageable.INITIALIZING.
The implementation of this method in class Manageable is
empty.
initImpl in class ManageableruntimeProperties - the initialization properties, not null.
InvalidPropertyValueException - if the value of a certain property is invalid.
InitializationException - if the initialization failed, for any other reason.
MissingRequiredPropertyException - if a required property is not given.
protected FunctionRequest convertRequestImpl(HttpServletRequest httpRequest)
throws InvalidRequestException,
FunctionNotSpecifiedException
CustomCallingConvention.
Only then it is guaranteed that the httpRequest argument is
not null.
httpRequest - the HTTP request, will not be null.
null.
InvalidRequestException - if the request is considerd to be invalid.
FunctionNotSpecifiedException - if the request does not indicate the name of the function to execute.
protected void convertResultImpl(FunctionResult xinsResult,
HttpServletResponse httpResponse,
HttpServletRequest httpRequest)
throws IOException
xinsResult - the XINS result object that should be converted to an HTTP response,
will not be null.httpResponse - the HTTP response object to configure, will not be null.httpRequest - the HTTP request sent by the client, will not be null.
IOException - if calling any of the methods in httpResponse causes an
I/O error.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||