|
HPSearch | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcgl.hpsearch.wsproxy.ProxyWebService
A Proxy Service that serves as a wrapper to other webservices that need to be
hosted.
Created: May 14, 2004
| Field Summary | |
InvocationContainer |
container
|
static int |
INCORRECT_PARAMETERS
|
static int |
INIT_FAILURE
|
static int |
INIT_SUCCESS
|
static int |
INVOCATION_ERROR
|
static int |
SERVICE_DONE
|
static int |
SERVICE_FINISHED
|
static int |
SERVICE_NOT_FOUND
|
static int |
SERVICE_READY
|
static int |
SERVICE_RUNNING
|
static String[] |
SERVICE_STATUS
|
static int |
SERVICE_STOPPED
|
static int |
SERVICE_SUSPENDED
|
static int |
SERVICE_TERMINATED
|
String |
serviceName
|
| Constructor Summary | |
ProxyWebService()
|
|
| Method Summary | |
void |
cleanup()
|
String[] |
getContext(String contextURI)
Retrieves the context data from the location specified by contextURI |
String |
getNewTemporaryFileName()
|
String |
getProperty(String name)
Returns the value of the property |
int |
getStatus()
|
void |
handleException(Exception e)
Safe error handler for handling processing errors. |
abstract void |
initService(InputStream[] in,
OutputStream[] out)
Should be used by services to set the i/p and o/p streams. |
abstract void |
process()
Other services MUST override this. |
void |
registerTemporaryFile(String tmpFileName)
|
abstract void |
resumeService()
|
abstract String[] |
serviceExceptions()
An array of possible exceptions that can happen when the service is running. |
void |
serviceFinished()
Indicates that the service has done processing. |
String |
setContext(String contextURI,
String[] data)
Stores the context data in teh location specified by contextURI |
void |
setInvocationHandler(String invokedService,
InvocationContainer ic)
Must be called by the InvocationContainer to specify which service is being run and a pointer to the InvocationConatainer. |
void |
setLogEntry(String entry)
Sets the logging entry |
void |
setProperty(String name,
String value)
Sets the service's system property |
void |
setStatus(int _status)
Provides a way for setting the service status. |
abstract void |
startService()
|
abstract void |
stopService()
|
abstract void |
suspendService()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int INVOCATION_ERROR
public static final int INCORRECT_PARAMETERS
public static final int SERVICE_NOT_FOUND
public static final int INIT_FAILURE
public static final int INIT_SUCCESS
public static final int SERVICE_READY
public static final int SERVICE_RUNNING
public static final int SERVICE_SUSPENDED
public static final int SERVICE_FINISHED
public static final int SERVICE_STOPPED
public static final int SERVICE_TERMINATED
public static final int SERVICE_DONE
public static final String[] SERVICE_STATUS
public InvocationContainer container
public String serviceName
| Constructor Detail |
public ProxyWebService()
| Method Detail |
public abstract void process()
throws Exception
Exception
public abstract void initService(InputStream[] in,
OutputStream[] out)
in - -
An array containing input streams used by the serviceout - -
An array containing output streams used by the servicepublic abstract String[] serviceExceptions()
public final void setInvocationHandler(String invokedService,
InvocationContainer ic)
invokedService - -
Name of the serviceic - -
Pointer to the invocation Container.public final int getStatus()
public final void setStatus(int _status)
_status -
public final void setProperty(String name,
String value)
name - Name of the propertyvalue - Value to be setpublic final String getProperty(String name)
name - The property being queried
public final void setLogEntry(String entry)
entry - The log entry
public final String setContext(String contextURI,
String[] data)
contextURI - -
The context locationdata - -
the data to store
public final String[] getContext(String contextURI)
public final void cleanup()
public String getNewTemporaryFileName()
public void registerTemporaryFile(String tmpFileName)
public final void serviceFinished()
public final void handleException(Exception e)
e - -
The error that occurred while processing.
public abstract void startService()
throws Exception
Exception
public abstract void stopService()
throws Exception
Exception
public abstract void suspendService()
throws Exception
Exception
public abstract void resumeService()
throws Exception
Exception
|
HPSearch | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||