org.smartcc
Class HTTPTransport

java.lang.Object
  |
  +--org.smartcc.HTTPTransport
All Implemented Interfaces:
Interceptor, Transport

public class HTTPTransport
extends java.lang.Object
implements Transport

Forward an Invocation to the http connector servlet

Version:
$Revision: 1.1.1.1 $
Author:
Holger Engels.

Constructor Summary
HTTPTransport()
           
 
Method Summary
 Interceptor getNext()
          A Transport interceptor is always the last in interceptor in the chain.
 java.lang.Object invoke(Invocation invocation)
          Marshall the invocation and forward it to the HTTPConnector servlet.
 void setNext(Interceptor interceptor)
          A Transport interceptor is always the last in interceptor in the chain.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HTTPTransport

public HTTPTransport()
Method Detail

setNext

public void setNext(Interceptor interceptor)
A Transport interceptor is always the last in interceptor in the chain.

Specified by:
setNext in interface Interceptor
Parameters:
interceptor - the interceptor, that follows this interceptor

getNext

public Interceptor getNext()
A Transport interceptor is always the last in interceptor in the chain.

Specified by:
getNext in interface Interceptor
Returns:
the next Interceptor in the chain

invoke

public java.lang.Object invoke(Invocation invocation)
                        throws java.lang.Throwable
Marshall the invocation and forward it to the HTTPConnector servlet. Unmarshall the result and hand it back to the caller. If the result is an Exception, throw it.

Specified by:
invoke in interface Interceptor
Parameters:
invocation - the Invocation
Returns:
the result
java.lang.Throwable


Copyright © 2002 DC-TSS. All Rights Reserved.