|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.softwareag.tamino.db.api.invocation.TInvocationRequestWriter
com.softwareag.tamino.db.api.invocation.http.THTTPInvocationRequestWriter
public class THTTPInvocationRequestWriter
THTTPInvocationRequestWriter is the HTTP specific implementation class for TInvocationRequestWriter. A Tamino specific command statement is written to a HTTP request according the content-type Multipart/Form-data.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.softwareag.tamino.db.api.invocation.TInvocationRequestWriter |
---|
TInvocationRequestWriter.TCommandItemPairWriter |
Constructor Summary | |
---|---|
THTTPInvocationRequestWriter()
Initializes the request writer. |
|
THTTPInvocationRequestWriter(java.net.HttpURLConnection httpConnection)
Initializes the request writer. |
Method Summary | |
---|---|
protected void |
close()
Closes the invocation request. |
protected boolean |
isClosed()
Indicates if request writer is currently closed meaning that it is not possible to write any command statements into a Tamino request. |
void |
setConnection(java.net.HttpURLConnection httpConnection)
Sets a new HttpURLConnection so that a new invocation request can be written. |
protected void |
write(java.lang.String key,
java.lang.String value)
Writes the given key/value pair into the invocation request. |
protected void |
write(java.lang.String key,
TStreamable value)
Writes the given key/value pair into the invocation request. |
Methods inherited from class com.softwareag.tamino.db.api.invocation.TInvocationRequestWriter |
---|
getLocale, setLocale, write |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public THTTPInvocationRequestWriter()
public THTTPInvocationRequestWriter(java.net.HttpURLConnection httpConnection) throws TInvocationRequestNotWritableException
TInvocationRequestNotWritableException
Method Detail |
---|
public void setConnection(java.net.HttpURLConnection httpConnection) throws TInvocationRequestNotWritableException
httpConnection
- to which the invocation request is written.
TInvocationRequestNotWritableException
protected void write(java.lang.String key, java.lang.String value) throws TInvocationRequestNotWritableException
write
in class TInvocationRequestWriter
key
- that identifies a Tamino specific command key (e.g. _process).value
- is referred to the key and might be the content for a Tamino
specific command.
TRequestNotWritableException
- if any problems during writing occur.
TInvocationRequestNotWritableException
protected void write(java.lang.String key, TStreamable value) throws TInvocationRequestNotWritableException
write
in class TInvocationRequestWriter
key
- that identifies a Tamino specific command key (e.g. _process).value
- is referred to the key and might be the content for a Tamino
specific command. The value is here given as a TStreamable instance.
TRequestNotWritableException
- if any problems during writing occur.
TInvocationRequestNotWritableException
protected void close() throws TInvocationRequestNotWritableException
close
in class TInvocationRequestWriter
TInvocationRequestNotWritableException
protected boolean isClosed()
isClosed
in class TInvocationRequestWriter
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |