|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.remoting.AbstractInvoker
org.jboss.remoting.ServerInvoker
org.jboss.remoting.transport.web.WebServerInvoker
org.jboss.remoting.transport.coyote.CoyoteInvoker
public class CoyoteInvoker
Some of the code in this class was pulled from org.apache.coyote.tomcat4.CoyoteAdapter and hence will maintain the Apache License (and author credit from original source).
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.jboss.remoting.transport.web.WebServerInvoker |
---|
WebServerInvoker.CreatedInvocationRequest |
Nested classes/interfaces inherited from class org.jboss.remoting.ServerInvoker |
---|
ServerInvoker.InvalidStateException |
Nested classes/interfaces inherited from class org.jboss.remoting.AbstractInvoker |
---|
AbstractInvoker.CallbackLocatorHolder |
Field Summary | |
---|---|
protected static java.lang.Boolean |
FALSE
|
protected boolean |
isRemotingUserAgent
Indicates if client is HTTPClientInvoker |
protected org.apache.coyote.ProtocolHandler |
protocolHandler
|
protected static java.lang.ThreadLocal |
receivedInvocationRequest
Indicates if input was raw or an InvocationRequest |
protected static java.lang.Boolean |
TRUE
|
protected java.lang.String |
URIEncoding
|
Fields inherited from class org.jboss.remoting.transport.web.WebServerInvoker |
---|
HEADER_SESSION_ID, HEADER_SUBSYSTEM |
Fields inherited from class org.jboss.remoting.AbstractInvoker |
---|
classbyteloader, configuration, localServerLocators, locator, passConfigMapToMarshalFactory, serializationType, socketFactory, socketFactoryCreatedFromSSLParameters |
Constructor Summary | |
---|---|
CoyoteInvoker(InvokerLocator locator)
|
|
CoyoteInvoker(InvokerLocator locator,
java.util.Map configuration)
|
Method Summary | |
---|---|
static java.lang.String |
capitalize(java.lang.String name)
Reverse of Introspector.decapitalize |
protected void |
convertMB(org.apache.tomcat.util.buf.MessageBytes mb)
Character conversion of the a US-ASCII MessageBytes. |
protected void |
convertURI(org.apache.tomcat.util.buf.MessageBytes uri,
RequestMap request)
Character conversion of the URI. |
protected static void |
copyBytes(byte[] b,
int dest,
int src,
int len)
Copy an array of bytes to a different position. |
protected InvocationRequest |
createNewInvocationRequest(RequestMap requestMap,
ResponseMap responseMap,
java.lang.Object payload)
|
protected javax.net.ServerSocketFactory |
getDefaultServerSocketFactory()
Gets the default server socket factory to use for the server invoker. |
static boolean |
normalize(org.apache.tomcat.util.buf.MessageBytes uriMB)
Normalize URI. |
protected boolean |
postParseRequest(org.apache.coyote.Request req,
RequestMap request,
org.apache.coyote.Response res,
ResponseMap response)
Parse additional request parameters. |
void |
service(org.apache.coyote.Request req,
org.apache.coyote.Response res)
Service method. |
static boolean |
setProperty(java.lang.Object o,
java.lang.String name,
java.lang.String value)
Find a method with the right name If found, call the method ( if param is int or boolean we'll convert value to the right type before) - that means you can have setDebug(1). |
protected void |
setup()
|
void |
start()
Subclasses should override to provide any specific start logic. |
void |
stop()
Subclasses should override to provide any specific stop logic. |
Methods inherited from class org.jboss.remoting.transport.web.WebServerInvoker |
---|
createNewInvocationRequest, getContentLength, getDefaultDataType, getInvocationRequest, getMarshaller, getSessionId, getUnMarshaller, isTransportBiDirectional |
Methods inherited from class org.jboss.remoting.AbstractInvoker |
---|
addClientLocator, createSocketFactory, getClassLoader, getClientLocator, getClientLocators, getLocator, getSerializationType, getSocketFactory, isCompleteSocketFactory, isSocketFactoryCreatedFromSSLParameters, needsCustomSSLConfiguration, setClassLoader, setSerializationType, setSocketFactory, wrapSocketFactory |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static java.lang.ThreadLocal receivedInvocationRequest
protected static final java.lang.Boolean FALSE
protected static final java.lang.Boolean TRUE
protected org.apache.coyote.ProtocolHandler protocolHandler
protected java.lang.String URIEncoding
protected boolean isRemotingUserAgent
Constructor Detail |
---|
public CoyoteInvoker(InvokerLocator locator)
public CoyoteInvoker(InvokerLocator locator, java.util.Map configuration)
Method Detail |
---|
protected void setup() throws java.lang.Exception
setup
in class ServerInvoker
java.lang.Exception
protected javax.net.ServerSocketFactory getDefaultServerSocketFactory() throws java.io.IOException
ServerInvoker
getDefaultServerSocketFactory
in class ServerInvoker
java.io.IOException
public void start() throws java.io.IOException
ServerInvoker
start
in interface ServerInvokerMBean
start
in class ServerInvoker
java.io.IOException
public void service(org.apache.coyote.Request req, org.apache.coyote.Response res) throws java.lang.Exception
service
in interface org.apache.coyote.Adapter
java.lang.Exception
protected InvocationRequest createNewInvocationRequest(RequestMap requestMap, ResponseMap responseMap, java.lang.Object payload)
protected boolean postParseRequest(org.apache.coyote.Request req, RequestMap request, org.apache.coyote.Response res, ResponseMap response) throws java.lang.Exception
java.lang.Exception
protected void convertURI(org.apache.tomcat.util.buf.MessageBytes uri, RequestMap request) throws java.lang.Exception
java.lang.Exception
protected void convertMB(org.apache.tomcat.util.buf.MessageBytes mb)
public static boolean normalize(org.apache.tomcat.util.buf.MessageBytes uriMB)
uriMB
- URI to be normalizedprotected static void copyBytes(byte[] b, int dest, int src, int len)
public void stop()
ServerInvoker
stop
in interface ServerInvokerMBean
stop
in class ServerInvoker
public static boolean setProperty(java.lang.Object o, java.lang.String name, java.lang.String value)
public static java.lang.String capitalize(java.lang.String name)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |