|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.languagecomputer.client.WebClient
public class WebClient
Base web service client.
| Field Summary | |
|---|---|
static String |
ANNOTATION_META_SERVICE
|
static String |
ATTRIBUTE_SERVICE
|
static String |
COREFERENCE_SERVICE
|
static String |
DOCUMENT_SERVICE
|
static String |
ENTITY_SERVICE
|
static String |
EVENT_SERVICE
|
static String |
INDEX_SERVICE
|
static String |
SPATIAL_SERVICE
|
static String |
TEMPORAL_SERVICE
|
| Constructor Summary | |
|---|---|
WebClient()
Creates a new WebClient. |
|
| Method Summary | |
|---|---|
AnnotationMetaServiceWebClient |
getAnnotationMetaService()
Returns the lazy-loaded AnnotationMetaService. |
AttributeServiceWebClient |
getAttributeService()
Returns the lazy-loaded AttributeService. |
int |
getConnectTimeout(String service)
Returns the default connect timeout (2 seconds). |
CoreferenceServiceWebClient |
getCoreferenceService()
Returns the lazy-loaded CoreferenceService. |
DocumentServiceWebClient |
getDocumentService()
Returns the lazy-loaded DocumentService. |
EntityServiceWebClient |
getEntityService()
Returns the lazy-loaded EntityService. |
EventServiceWebClient |
getEventService()
Returns the lazy-loaded EventService. |
String |
getHost(String service)
Returns the default host (localhost). |
IndexServiceWebClient |
getIndexService()
Returns the lazy-loaded IndexService. |
int |
getPort(String service)
Returns the default port number (8300). |
int |
getReceiveTimeout(String service)
Returns the receive timeout (1 minute). |
SpatialServiceWebClient |
getSpatialService()
Returns the lazy-loaded SpatialService. |
TemporalServiceWebClient |
getTemporalService()
Returns the lazy-loaded TemporalService. |
String |
getURL(String service)
Returns the default URL (using the default host and port and the given service). |
static void |
print(Document document)
Prints the Document contents and annotations to stdout. |
void |
setSessionID(String service,
String sessionID)
Helper method to set the sessionID for the given service. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String DOCUMENT_SERVICE
public static final String ENTITY_SERVICE
public static final String EVENT_SERVICE
public static final String SPATIAL_SERVICE
public static final String TEMPORAL_SERVICE
public static final String ATTRIBUTE_SERVICE
public static final String COREFERENCE_SERVICE
public static final String INDEX_SERVICE
public static final String ANNOTATION_META_SERVICE
| Constructor Detail |
|---|
public WebClient()
WebClient.
| Method Detail |
|---|
public int getPort(String service)
public String getHost(String service)
public String getURL(String service)
public int getConnectTimeout(String service)
public int getReceiveTimeout(String service)
public DocumentServiceWebClient getDocumentService()
DocumentService.
public EntityServiceWebClient getEntityService()
EntityService.
public EventServiceWebClient getEventService()
EventService.
public SpatialServiceWebClient getSpatialService()
SpatialService.
public TemporalServiceWebClient getTemporalService()
TemporalService.
public AttributeServiceWebClient getAttributeService()
AttributeService.
public CoreferenceServiceWebClient getCoreferenceService()
CoreferenceService.
public IndexServiceWebClient getIndexService()
IndexService.
public AnnotationMetaServiceWebClient getAnnotationMetaService()
AnnotationMetaService.
public void setSessionID(String service,
String sessionID)
String identifiers.
public static void print(Document document)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||