Oracle Application Server Wireless Java API Reference
B14043-01


oracle.panama.adapter.http.event
Interface HttpAdapterInvokeEvent


public interface HttpAdapterInvokeEvent

An event which indicates a different point in the ecxecution of the HttpAdapter invoke method.

This low-level event is generated by an HttpAdapter instance:


Field Summary
static int AFTER_CONNECT
           
static int BEFORE_CONNECT
           
static int INVOKE_BEGIN
           
static int INVOKE_END
           
static int INVOKE_ERROR
           

 

Method Summary
 java.lang.String getDebugTextData()
           
 java.lang.Exception getException()
           
 int getID()
           
 java.util.Enumeration getRequestHeaderNames()
          Returns an enumeration of all the header names this request contains.
 java.lang.String[] getRequestHeaders(java.lang.String name)
          Returns all the values of the specified request header as an array of String objects.
 java.util.Enumeration getResponseHeaderNames()
          Returns an enumeration of all the header names this response contains.
 java.lang.String[] getResponseHeaders(java.lang.String name)
          Returns all the values of the specified response header as an array of String objects.
 ServiceContext getServiceContext()
          Returns the ServiceContext used to invoke the adapter.

 

Field Detail

AFTER_CONNECT

public static final int AFTER_CONNECT
See Also:
Constant Field Values

BEFORE_CONNECT

public static final int BEFORE_CONNECT
See Also:
Constant Field Values

INVOKE_BEGIN

public static final int INVOKE_BEGIN
See Also:
Constant Field Values

INVOKE_END

public static final int INVOKE_END
See Also:
Constant Field Values

INVOKE_ERROR

public static final int INVOKE_ERROR
See Also:
Constant Field Values

Method Detail

getDebugTextData

public java.lang.String getDebugTextData()
                                  throws java.lang.IllegalStateException,
                                         java.io.IOException
Throws:
java.lang.IllegalStateException
java.io.IOException

getException

public java.lang.Exception getException()
                                 throws java.lang.IllegalStateException
Throws:
java.lang.IllegalStateException

getID

public int getID()

getRequestHeaderNames

public java.util.Enumeration getRequestHeaderNames()
                                            throws java.lang.IllegalStateException
Returns an enumeration of all the header names this request contains. If the request has no headers, this method returns an empty enumeration.
Returns:
an enumeration of all the header names sent with this request; if the request has no headers, an empty enumeration;
Throws:
java.lang.IllegalStateException

getRequestHeaders

public java.lang.String[] getRequestHeaders(java.lang.String name)
                                     throws java.lang.IllegalStateException
Returns all the values of the specified request header as an array of String objects. If the request did not include any headers of the specified name, this method returns an empty array. The header name is case insensitive.
Parameters:
name - a String specifying the header name
Returns:
an array containing the values of the requested header. If the request does not have any headers of that name return an empty array.
Throws:
java.lang.IllegalStateException

getResponseHeaderNames

public java.util.Enumeration getResponseHeaderNames()
                                             throws java.lang.IllegalStateException
Returns an enumeration of all the header names this response contains. If the response has no headers, this method returns an empty enumeration.
Returns:
an enumeration of all the header names received with this response; if the response has no headers, an empty enumeration;
Throws:
java.lang.IllegalStateException

getResponseHeaders

public java.lang.String[] getResponseHeaders(java.lang.String name)
                                      throws java.lang.IllegalStateException
Returns all the values of the specified response header as an array of String objects. If the response did not include any headers of the specified name, this method returns an empty array. The header name is case insensitive.
Parameters:
name - a String specifying the header name
Returns:
an array containing the values of the requested header. If the response does not have any headers of that name return an empty array.
Throws:
java.lang.IllegalStateException

getServiceContext

public ServiceContext getServiceContext()
Returns the ServiceContext used to invoke the adapter.
Returns:
ServiceContext

Oracle Application Server Wireless Java API Reference
B14043-01


Copyright © 2004 Oracle Corporation. All Rights Reserved.