public class JBossRequestContext extends Object implements RequestContext
| Constructor and Description |
|---|
JBossRequestContext() |
| Modifier and Type | Method and Description |
|---|---|
Element |
asElement(Document root)
Return a new Element given the owner document
|
<T> T |
get(String key)
Get an element from the map
|
Node |
getDocumentElement()
Return the element of the document
from where the request was created if available
Null if no parsing was involved
|
void |
marshall(OutputStream os)
Marshall the request context onto an Output Stream
|
void |
readRequest(InputStream is)
Read the Request from a stream
|
void |
readRequest(Node node)
Read a preparsed Node
|
<T> void |
set(String key,
T obj)
Set an object on the map
|
void |
setRequest(RequestType requestType)
Place the Request instance on the context
|
public <T> T get(String key)
ContextMapOpget in interface ContextMapOpT - object from the mapkey - KeyContextMapOp.get(String)public <T> void set(String key, T obj)
ContextMapOpset in interface ContextMapOpkey - Key for the mapobj - Object to be placedContextMapOp.set(String, Object)public Node getDocumentElement()
RequestContextgetDocumentElement in interface RequestContextRequestContext.getDocumentElement()public void setRequest(RequestType requestType) throws IOException
RequestContextsetRequest in interface RequestContextrequestType - An instance of RequestTypeIOExceptionRequestContext.setRequest(RequestType)public void readRequest(InputStream is) throws IOException
RequestContextreadRequest in interface RequestContextis - InputStream for the requestIOExceptionRequestContext.readRequest(InputStream)public void readRequest(Node node) throws IOException
RequestContextreadRequest in interface RequestContextIOExceptionRequestContext.readRequest(Node)public void marshall(OutputStream os) throws IOException
RequestContextmarshall in interface RequestContextos - OutputStream (System.out, ByteArrayOutputStream etc)IOExceptionRequestContext.marshall(OutputStream)public Element asElement(Document root)
ElementMappingTypeasElement in interface ElementMappingTypeElementMappingType#asElement(Document)Copyright © 2012 JBoss, a division of Red Hat, Inc.. All Rights Reserved.