|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jcoderz.commons.connector.http.HttpConnectionFactoryImpl
public class HttpConnectionFactoryImpl
Factory for the creation of a connection handle used by the client.
| Constructor Summary | |
|---|---|
HttpConnectionFactoryImpl(HttpManagedConnectionFactoryImpl mcf,
ConnectionManager cm)
Constructor. |
|
| Method Summary | |
|---|---|
HttpConnection |
getConnection(HttpConnectionSpec connectionSpec)
Get a connection handle for an HTTP connection using request-specific properties. |
protected HttpConnection |
getConnectionHandle(HttpConnectionSpec connectionSpec)
Gets a HttpConnection implementation (here: HttpConnectionImpl - see deployment descriptor) as counterpart of the HttpManagedConnectionImpl. |
String |
getDescription()
Get the human-readable description. |
Reference |
getReference()
|
void |
setDescription(String desc)
Set the human-readable description. |
void |
setReference(Reference reference)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public HttpConnectionFactoryImpl(HttpManagedConnectionFactoryImpl mcf,
ConnectionManager cm)
mcf - the used ManagedConnectionFactorycm - the used ConnectionManager| Method Detail |
|---|
public HttpConnection getConnection(HttpConnectionSpec connectionSpec)
throws ResourceException
HttpConnectionFactory mConnectionFactory = ...;
HttpConnectionSpec cs = new HttpConnectionSpec(this);
cs.setUrl("http://host.somewhere.com/");
HttpConnection connection = mConnectionFactory.getConnection(cs);
getConnection in interface HttpConnectionFactoryconnectionSpec - HttpConnectionSpec instance holding
request-specific properties.
ResourceException - indicating an error
condition on application server side.
protected HttpConnection getConnectionHandle(HttpConnectionSpec connectionSpec)
throws ResourceException
connectionSpec - specifies the target system
ResourceExceptionpublic void setReference(Reference reference)
public Reference getReference()
public String getDescription()
public void setDescription(String desc)
desc - the description of the connector as part of the deployment
descriptor
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||