Class AbstractClient
- java.lang.Object
-
- org.springframework.extensions.webscripts.connector.AbstractClient
-
- All Implemented Interfaces:
Client
- Direct Known Subclasses:
RemoteClient
public abstract class AbstractClient extends java.lang.Object implements Client
Abstract base class for client implementations.A general purpose but very useful RemoteClient implementation is provided that should handle most HTTP(S) connection needs.
Client objects manage state between the web script layer and the remote endpoint.
Connector objects tell the Client objects what to do and when. They orchestrate the sequence of handshakes and so forth so that the end user or developer doesn't need to worry about the underlying mechanics remoting to the endpoint.
- Author:
- muzquiano, Kevin Roast
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.Stringendpoint
-
Constructor Summary
Constructors Constructor Description AbstractClient()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetEndpoint()java.net.URLgetURL()voidsetEndpoint(java.lang.String endpoint)Set the endpoint for the Client instance
-
-
-
Method Detail
-
setEndpoint
public void setEndpoint(java.lang.String endpoint)
Set the endpoint for the Client instance- Parameters:
endpoint- Endpoint URL stem
-
getEndpoint
public java.lang.String getEndpoint()
- Specified by:
getEndpointin interfaceClient- Returns:
- the Endpoint for this Client e.g. http://localhost:8080/alfresco/service
-
-