java.lang.Object
org.springframework.extensions.webscripts.connector.AbstractClient
All Implemented Interfaces:
Client
Direct Known Subclasses:
RemoteClient

public abstract class AbstractClient extends 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 Details

    • endpoint

      protected String endpoint
  • Constructor Details

    • AbstractClient

      public AbstractClient()
  • Method Details

    • setEndpoint

      public void setEndpoint(String endpoint)
      Set the endpoint for the Client instance
      Parameters:
      endpoint - Endpoint URL stem
    • getEndpoint

      public String getEndpoint()
      Specified by:
      getEndpoint in interface Client
      Returns:
      the Endpoint for this Client e.g. http://localhost:8080/alfresco/service
    • getURL

      public URL getURL()
      Specified by:
      getURL in interface Client
      Returns:
      the Endpoint for the Client as a URL object