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)
ContextMapOp
get
in interface ContextMapOp
T
- object from the mapkey
- KeyContextMapOp.get(String)
public <T> void set(String key, T obj)
ContextMapOp
set
in interface ContextMapOp
key
- Key for the mapobj
- Object to be placedContextMapOp.set(String, Object)
public Node getDocumentElement()
RequestContext
getDocumentElement
in interface RequestContext
RequestContext.getDocumentElement()
public void setRequest(RequestType requestType) throws IOException
RequestContext
setRequest
in interface RequestContext
requestType
- An instance of RequestTypeIOException
RequestContext.setRequest(RequestType)
public void readRequest(InputStream is) throws IOException
RequestContext
readRequest
in interface RequestContext
is
- InputStream for the requestIOException
RequestContext.readRequest(InputStream)
public void readRequest(Node node) throws IOException
RequestContext
readRequest
in interface RequestContext
IOException
RequestContext.readRequest(Node)
public void marshall(OutputStream os) throws IOException
RequestContext
marshall
in interface RequestContext
os
- OutputStream (System.out, ByteArrayOutputStream etc)IOException
RequestContext.marshall(OutputStream)
public Element asElement(Document root)
ElementMappingType
asElement
in interface ElementMappingType
ElementMappingType#asElement(Document)
Copyright © 2023 JBoss by Red Hat. All rights reserved.