public class THTTPInvocationRequestWriter extends TInvocationRequestWriter
TInvocationRequestWriter.TCommandItemPairWriter
Constructor and Description |
---|
THTTPInvocationRequestWriter()
Initializes the request writer.
|
THTTPInvocationRequestWriter(java.net.HttpURLConnection httpConnection)
Initializes the request writer.
|
Modifier and Type | Method and Description |
---|---|
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.
|
getLocale, setLocale, write
public THTTPInvocationRequestWriter()
public THTTPInvocationRequestWriter(java.net.HttpURLConnection httpConnection) throws TInvocationRequestNotWritableException
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
Copyright (c) 2017 Software AG. All Rights Reserved.