org.opensaml
Interface SAMLSOAPHTTPBinding.HTTPHook

Enclosing interface:
SAMLSOAPHTTPBinding

public static interface SAMLSOAPHTTPBinding.HTTPHook

Callback interface provided by client application enabling post-construction examination/modification of HTTP exchange. For example, a caller may embed security information, authenticate the peer, etc.

Author:
Scott Cantor

Method Summary
 boolean incoming(javax.servlet.http.HttpServletRequest r, Object globalCtx, Object callCtx)
          Callback hook enabling HTTP request header examination.
 boolean incoming(HttpURLConnection conn, Object globalCtx, Object callCtx)
          Callback hook enabling HTTP response header examination.
 boolean outgoing(javax.servlet.http.HttpServletResponse r, Object globalCtx, Object callCtx)
          Callback hook enabling HTTP response header modification.
 boolean outgoing(HttpURLConnection conn, Object globalCtx, Object callCtx)
          Callback hook enabling HTTP request header modification.
 

Method Detail

incoming

boolean incoming(javax.servlet.http.HttpServletRequest r,
                 Object globalCtx,
                 Object callCtx)
                 throws SAMLException
Callback hook enabling HTTP request header examination.

Parameters:
r - The HTTP request context
globalCtx - Context data to pass to registered hooks on each call
callCtx - Context data to pass to registered hooks for this call
Returns:
true iff processing of message should proceed
Throws:
SAMLException

outgoing

boolean outgoing(javax.servlet.http.HttpServletResponse r,
                 Object globalCtx,
                 Object callCtx)
                 throws SAMLException
Callback hook enabling HTTP response header modification.

Parameters:
r - The HTTP response context
globalCtx - Context data to pass to registered hooks on each call
callCtx - Context data to pass to registered hooks for this call
Returns:
true iff transmission of message should proceed
Throws:
SAMLException

incoming

boolean incoming(HttpURLConnection conn,
                 Object globalCtx,
                 Object callCtx)
                 throws SAMLException
Callback hook enabling HTTP response header examination.

Parameters:
conn - The HTTP connection
globalCtx - Context data to pass to registered hooks on each call
callCtx - Context data to pass to registered hooks for this call
Returns:
true iff processing of message should proceed
Throws:
SAMLException

outgoing

boolean outgoing(HttpURLConnection conn,
                 Object globalCtx,
                 Object callCtx)
                 throws SAMLException
Callback hook enabling HTTP request header modification.

Parameters:
conn - The HTTP connection
globalCtx - Context data to pass to registered hooks on each call
callCtx - Context data to pass to registered hooks for this call
Returns:
true iff transmission of message should proceed
Throws:
SAMLException


Copyright ? 2005 UCAID. All Rights Reserved.