org.restlet.service
Class ConnectorService

java.lang.Object
  extended by org.restlet.service.ConnectorService

public class ConnectorService
extends Object

Service providing client and server connectors. Implementation note: the parent component will ensure that client connectors won't automatically follow redirections. This will ensure a consistent behavior and portability of applications.

Author:
Jerome Louvel (contact@noelios.com)

Constructor Summary
ConnectorService()
          Constructor.
 
Method Summary
 void afterSend(Representation entity)
          Call-back method invoked by the client or server connectors just after sending the entity to the target component.
 void beforeSend(Representation entity)
          Call-back method invoked by the client or server connectors just before sending the entity to the target component.
 List<Protocol> getClientProtocols()
          Returns the list of required client protocols.
 List<Protocol> getServerProtocols()
          Returns the list of required server protocols.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConnectorService

public ConnectorService()
Constructor.

Method Detail

afterSend

public void afterSend(Representation entity)
Call-back method invoked by the client or server connectors just after sending the entity to the target component. The default implementation does nothing.

Parameters:
entity - The entity about to be committed.

beforeSend

public void beforeSend(Representation entity)
Call-back method invoked by the client or server connectors just before sending the entity to the target component. The default implementation does nothing.

Parameters:
entity - The entity about to be committed.

getClientProtocols

public List<Protocol> getClientProtocols()
Returns the list of required client protocols. You need to update this list if you need the parent component to provide additional client connectors.

Returns:
The list of required client protocols.

getServerProtocols

public List<Protocol> getServerProtocols()
Returns the list of required server protocols. An empty list means that all protocols are potentially supported (default case). You should update this list to restrict the actual protocols supported by your application.

Returns:
The list of required server protocols.


Copyright © 2005-2007 Noelios Consulting.