org.apache.catalina
Interface Connector

All Known Implementing Classes:
HttpConnector, HttpConnector

public interface Connector

A Connector is a component responsible receiving requests from, and returning responses to, a client application. A Connector performs the following general logic:

It is expected that the implementation details of various Connectors will vary widely, so the logic above should considered typical rather than normative.

Version:
$Revision: 1.2 $ $Date: 2000/09/08 22:29:34 $
Author:
Craig R. McClanahan

Method Summary
 Request createRequest()
          Create (or allocate) and return a Request object suitable for specifying the contents of a Request to the responsible Container.
 Response createResponse()
          Create (or allocate) and return a Response object suitable for receiving the contents of a Response from the responsible Container.
 Container getContainer()
          Return the Container used for processing requests received by this Connector.
 ServerSocketFactory getFactory()
          Return the server socket factory used by this Container.
 java.lang.String getInfo()
          Return descriptive information about this Connector implementation.
 java.lang.String getScheme()
          Return the scheme that will be assigned to requests received through this connector.
 boolean getSecure()
          Return the secure connection flag that will be assigned to requests received through this connector.
 void setContainer(Container container)
          Set the Container used for processing requests received by this Connector.
 void setFactory(ServerSocketFactory factory)
          Set the server socket factory used by this Container.
 void setScheme(java.lang.String scheme)
          Set the scheme that will be assigned to requests received through this connector.
 void setSecure(boolean secure)
          Set the secure connection flag that will be assigned to requests received through this connector.
 

Method Detail

getContainer

public Container getContainer()
Return the Container used for processing requests received by this Connector.

setContainer

public void setContainer(Container container)
Set the Container used for processing requests received by this Connector.
Parameters:
container - The new Container to use

getFactory

public ServerSocketFactory getFactory()
Return the server socket factory used by this Container.

setFactory

public void setFactory(ServerSocketFactory factory)
Set the server socket factory used by this Container.
Parameters:
factory - The new server socket factory

getInfo

public java.lang.String getInfo()
Return descriptive information about this Connector implementation.

getScheme

public java.lang.String getScheme()
Return the scheme that will be assigned to requests received through this connector. Default value is "http".

setScheme

public void setScheme(java.lang.String scheme)
Set the scheme that will be assigned to requests received through this connector.
Parameters:
scheme - The new scheme

getSecure

public boolean getSecure()
Return the secure connection flag that will be assigned to requests received through this connector. Default value is "false".

setSecure

public void setSecure(boolean secure)
Set the secure connection flag that will be assigned to requests received through this connector.
Parameters:
secure - The new secure connection flag

createRequest

public Request createRequest()
Create (or allocate) and return a Request object suitable for specifying the contents of a Request to the responsible Container.

createResponse

public Response createResponse()
Create (or allocate) and return a Response object suitable for receiving the contents of a Response from the responsible Container.


Copyright © 2000 Apache Software Foundation. All Rights Reserved.