|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jcoderz.commons.connector.http.HttpManagedConnectionImpl
public class HttpManagedConnectionImpl
This class defines the managed connection maintained by the application server and triggered via the non-managed connection.
| Constructor Summary | |
|---|---|
HttpManagedConnectionImpl(HttpManagedConnectionFactoryImpl mcf,
ConnectionRequestInfo cri)
Constructor. |
|
| Method Summary | |
|---|---|
void |
addConnectionEventListener(ConnectionEventListener listener)
|
void |
associateConnection(Object connection)
|
void |
cleanup()
|
void |
destroy()
|
Object |
getConnection(Subject subject,
ConnectionRequestInfo cri)
|
LocalTransaction |
getLocalTransaction()
|
PrintWriter |
getLogWriter()
|
HttpManagedConnectionFactoryImpl |
getManagedConnectionFactory()
Gets the managed connection factory of this managed connection. |
ManagedConnectionMetaData |
getMetaData()
|
protected Url |
getUrl()
|
XAResource |
getXAResource()
|
void |
removeConnectionEventListener(ConnectionEventListener listener)
|
byte[] |
sendAndReceive(byte[] message)
This method is used by the HttpConnection Implementation class to send and receive an HTTP
request/response using the commons-httpclient library. |
void |
setEventListener(HttpConnectorEventListener listener,
ConnectorContext context)
Sets the event listener used for SLA logs. |
void |
setLogWriter(PrintWriter out)
|
void |
setRequestResponseHeader(HttpRequestResponseHeader header)
Sets the header set for sending and validate whilst receiving. |
String |
toString()
Gets the string representation of the HttpManagedConnection. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public HttpManagedConnectionImpl(HttpManagedConnectionFactoryImpl mcf,
ConnectionRequestInfo cri)
mcf - the HttpManagedConnectionFactoryImpl associated withcri - the ConnectionRequestInfo specifying the requested connection| Method Detail |
|---|
public void addConnectionEventListener(ConnectionEventListener listener)
addConnectionEventListener in interface ManagedConnectionpublic void associateConnection(Object connection)
associateConnection in interface ManagedConnectionpublic void cleanup()
cleanup in interface ManagedConnectionpublic void destroy()
destroy in interface ManagedConnection
public Object getConnection(Subject subject,
ConnectionRequestInfo cri)
getConnection in interface ManagedConnection
public LocalTransaction getLocalTransaction()
throws ResourceException
getLocalTransaction in interface ManagedConnectionResourceExceptionpublic PrintWriter getLogWriter()
getLogWriter in interface ManagedConnectionpublic void setLogWriter(PrintWriter out)
setLogWriter in interface ManagedConnectionpublic ManagedConnectionMetaData getMetaData()
getMetaData in interface ManagedConnection
public XAResource getXAResource()
throws ResourceException
getXAResource in interface ManagedConnectionResourceExceptionpublic void removeConnectionEventListener(ConnectionEventListener listener)
removeConnectionEventListener in interface ManagedConnection
public byte[] sendAndReceive(byte[] message)
throws HttpConnectionException
HttpConnection Implementation class to send and receive an HTTP
request/response using the commons-httpclient library.
message - the message body to send via HTTP.
HttpConnectionException - for all types of connection failurespublic void setRequestResponseHeader(HttpRequestResponseHeader header)
header - header to set and to validate
public void setEventListener(HttpConnectorEventListener listener,
ConnectorContext context)
listener - the listener to setcontext - the context to setprotected Url getUrl()
public HttpManagedConnectionFactoryImpl getManagedConnectionFactory()
public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||