xsul.message_secure_router
Class CapHttpMessageRouter

java.lang.Object
  extended byxsul.message_secure_router.CapHttpMessageRouter
All Implemented Interfaces:
MessageProcessingNode, MessageRouter

public abstract class CapHttpMessageRouter
extends java.lang.Object
implements MessageRouter


Constructor Summary
CapHttpMessageRouter()
           
CapHttpMessageRouter(int port, SOAPEnvelopeSigner signer, SOAPEnvelopeVerifier verifier)
           
CapHttpMessageRouter(int port, SOAPEnvelopeSigner signer, SOAPEnvelopeVerifier verifier, CapabilityAuthorizer authorizer)
          Constructor
 
Method Summary
 CapabilityAuthorizer getAuthorizer()
           
 HttpMiniServer getHttpServer()
           
 SOAPEnvelopeSigner getSigner()
           
 SOAPEnvelopeVerifier getVerifier()
           
abstract  boolean process(MessageContext context)
          Return true to indicate that processingis should be finished (no more links in chain will be called).
 void service(HttpServerRequest req, HttpServerResponse res)
           
 void setAuthorizer(CapabilityAuthorizer _authorizer)
           
 void setVerifier(SOAPEnvelopeSigner _signer)
           
 void setVerifier(SOAPEnvelopeVerifier _verifier)
           
 void shutdownService()
           
 void startService()
           
 void stopService()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CapHttpMessageRouter

public CapHttpMessageRouter(int port,
                            SOAPEnvelopeSigner signer,
                            SOAPEnvelopeVerifier verifier,
                            CapabilityAuthorizer authorizer)
Constructor

Parameters:
verifier - a SOAPEnvelopeVerifier
authorizer - a CapabilityAuthorizer
signer - a SOAPEnvelopeSigner

CapHttpMessageRouter

public CapHttpMessageRouter(int port,
                            SOAPEnvelopeSigner signer,
                            SOAPEnvelopeVerifier verifier)

CapHttpMessageRouter

public CapHttpMessageRouter()
Method Detail

getHttpServer

public HttpMiniServer getHttpServer()

startService

public void startService()
                  throws MessageRouterException
Specified by:
startService in interface MessageRouter
Throws:
MessageRouterException

stopService

public void stopService()
                 throws MessageRouterException
Specified by:
stopService in interface MessageRouter
Throws:
MessageRouterException

shutdownService

public void shutdownService()
                     throws MessageRouterException
Specified by:
shutdownService in interface MessageRouter
Throws:
MessageRouterException

getVerifier

public SOAPEnvelopeVerifier getVerifier()

setVerifier

public void setVerifier(SOAPEnvelopeVerifier _verifier)

getAuthorizer

public CapabilityAuthorizer getAuthorizer()

setAuthorizer

public void setAuthorizer(CapabilityAuthorizer _authorizer)

getSigner

public SOAPEnvelopeSigner getSigner()

setVerifier

public void setVerifier(SOAPEnvelopeSigner _signer)

process

public abstract boolean process(MessageContext context)
                         throws MessageProcessingException
Description copied from interface: MessageProcessingNode
Return true to indicate that processingis should be finished (no more links in chain will be called).

Specified by:
process in interface MessageProcessingNode
Throws:
MessageProcessingException

service

public void service(HttpServerRequest req,
                    HttpServerResponse res)
             throws HttpServerException
Throws:
HttpServerException


IU Extreme! Lab (http://www.extreme.indiana.edu)