Test webapp

adriani.webapp.services
Class Introspection

java.lang.Object
  extended by adriani.webapp.services.Introspection

public class Introspection
extends java.lang.Object

This web service return some of the configuration parameters offered by the different context objects handled by the Axis2 framework. The web service is invoked by the test_axis2.jsp page using the ClientThread class, in order to call the web service using different threads (to make sure that Axis2 must handle the service calls simultaneously).


Field Summary
protected  java.lang.String leadingName
          The leading name of each message logged on the STDOUT.
protected  boolean verbose
          Specify if this web service must log detailed info on the STDOUT.
protected static java.lang.String WAIT
          The value of the input string used to force a delay when producing the response.
 
Constructor Summary
Introspection()
           
 
Method Summary
 void delay()
          Used to delay the service response for about 1 second.
 void finalize()
          Called by the Virtual Machine when this object is destroyed.
 java.lang.String getContextInfo(java.lang.String input)
          Simple version of the main operation, returning all the introspection parameters within an unique string element.
 java.lang.String[] getContextList(java.lang.String input)
          The main operation offered by this service, returning the introspection parameters as a String[] array, hence the SOAP response will be an array of "ns:return" XML elements.
 long getThreadID()
          Return the reference ID of the thread running this service.
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

verbose

protected boolean verbose
Specify if this web service must log detailed info on the STDOUT.


WAIT

protected static final java.lang.String WAIT
The value of the input string used to force a delay when producing the response.

See Also:
Constant Field Values

leadingName

protected java.lang.String leadingName
The leading name of each message logged on the STDOUT.

Constructor Detail

Introspection

public Introspection()
Method Detail

getContextInfo

public java.lang.String getContextInfo(java.lang.String input)
Simple version of the main operation, returning all the introspection parameters within an unique string element.
Remark: if the input parameter starts with "wait" this method waits about 1 sec before returning the SOAP response.

Parameters:
msg - a simple input message (used just to echo the input text).
Returns:
a text message containing the result of the introspection calls.

getContextList

public java.lang.String[] getContextList(java.lang.String input)
The main operation offered by this service, returning the introspection parameters as a String[] array, hence the SOAP response will be an array of "ns:return" XML elements.
Remark: if the input parameter starts with "wait" this method waits about 1 sec before returning the SOAP response.

Parameters:
msg - a simple input message (used just to echo the input text).
Returns:
a text message containing the result of the introspection calls.

delay

public void delay()
Used to delay the service response for about 1 second. See the test_axis2.jsp for details.


getThreadID

public long getThreadID()
Return the reference ID of the thread running this service.

Returns:
the ID (as a long integer) of the current thread.

finalize

public void finalize()
Called by the Virtual Machine when this object is destroyed.

Overrides:
finalize in class java.lang.Object

Build 10/01/2013

Morpheus Quality Technologies - making the Zion software
Copyright © 2009-2013 Stefano Adriani. All Rights Reserved