org.apache.uima.adapter.soap
Class AxisResourceServiceStub

java.lang.Object
  extended by org.apache.uima.adapter.soap.AxisResourceServiceStub
All Implemented Interfaces:
ResourceServiceStub
Direct Known Subclasses:
AxisAnalysisEngineServiceStub

public abstract class AxisResourceServiceStub
extends java.lang.Object
implements ResourceServiceStub

Proxy to a ResourceService that uses Axis SOAP to communicate with the service.


Constructor Summary
AxisResourceServiceStub(java.lang.String aEndpoint, java.lang.Integer aTimeout)
          Sets the endpoint of the service with which this proxy communicates.
 
Method Summary
 ResourceMetaData callGetMetaData()
          Performs service call to retreive resource meta data.
 java.net.URL getServiceEndpoint()
          Gets the service endpoint URL.
 java.lang.Integer getTimeout()
          Gets the timeout period.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.uima.resource.ResourceServiceStub
destroy
 

Constructor Detail

AxisResourceServiceStub

public AxisResourceServiceStub(java.lang.String aEndpoint,
                               java.lang.Integer aTimeout)
                        throws java.net.MalformedURLException
Sets the endpoint of the service with which this proxy communicates.

Parameters:
aEndpoint - the service endpoint URI
aTimeout - timeout period in milliseconds, or null to use Axis's default value
Throws:
java.net.MalformedURLException - if aEndpoint is not a valid URL
Method Detail

callGetMetaData

public ResourceMetaData callGetMetaData()
                                 throws ResourceServiceException
Description copied from interface: ResourceServiceStub
Performs service call to retreive resource meta data.

Specified by:
callGetMetaData in interface ResourceServiceStub
Returns:
metadata for the Resource
Throws:
ResourceServiceException
See Also:
org.apache.uima.resource.service.ResourceService#getMetaData()

getServiceEndpoint

public java.net.URL getServiceEndpoint()
Gets the service endpoint URL.

Returns:
the service endpoint URL

getTimeout

public java.lang.Integer getTimeout()
Gets the timeout period.

Returns:
the timeout period in milliseconds. Null indicates that Axis's default value will be used.


Copyright © 2010 The Apache Software Foundation. All Rights Reserved.