org.jcoderz.commons.connector.http
Class HttpConnectionUtil

java.lang.Object
  extended by org.jcoderz.commons.connector.http.HttpConnectionUtil

public final class HttpConnectionUtil
extends Object

This class provides utility functions for the http connector.

Author:
Michael Griffel

Field Summary
static String HTTP_CONNECTOR_EIS_NAME
          The JNDI name of the http connector.
static String HTTP_CONNECTOR_JNDI_NAME
          The JNDI name of the http connector.
 
Method Summary
static void close(HttpConnection in)
          Closes the HTTP connection (safe).
static HttpConnection getHttpConnection(HttpConnectionSpec spec)
          Returns a http connection.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

HTTP_CONNECTOR_JNDI_NAME

public static final String HTTP_CONNECTOR_JNDI_NAME
The JNDI name of the http connector.

See Also:
Constant Field Values

HTTP_CONNECTOR_EIS_NAME

public static final String HTTP_CONNECTOR_EIS_NAME
The JNDI name of the http connector.

See Also:
Constant Field Values
Method Detail

getHttpConnection

public static HttpConnection getHttpConnection(HttpConnectionSpec spec)
Returns a http connection.

Parameters:
spec - the http connection spec identifying the target system
Returns:
a http connection.

close

public static void close(HttpConnection in)
Closes the HTTP connection (safe). This method tries to close the given HTTP connection and if an ResourceException occurs a message with the level Level.FINE is logged. It's safe to pass a null reference for the argument.

Parameters:
in - the HTTP connection that should be closed.


Copyright 2007 The jCoderZ Project.