public abstract class TInvocationRequestWriter
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
protected class |
TInvocationRequestWriter.TCommandItemPairWriter
TCommandItemPairWriter
|
Modifier | Constructor and Description |
---|---|
protected |
TInvocationRequestWriter()
Initializes the request writer.
|
Modifier and Type | Method and Description |
---|---|
protected abstract void |
close()
Closes the invocation request.
|
java.util.Locale |
getLocale()
Gets the locale.
|
protected abstract 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 |
setLocale(java.util.Locale locale)
Sets the locale.
|
protected abstract void |
write(java.lang.String key,
java.lang.String value)
Writes the given key/value pair into the invocation request.
|
protected abstract void |
write(java.lang.String key,
TStreamable value)
Writes the given key/value pair into the invocation request.
|
void |
write(TCommandStatement commandStatement)
Writes the entire command statement into the invocation request and flushes the underlying
output stream afterwards.
|
protected TInvocationRequestWriter()
public void write(TCommandStatement commandStatement) throws TInvocationRequestNotWritableException
protected abstract void write(java.lang.String key, java.lang.String value) throws TInvocationRequestNotWritableException
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 abstract void write(java.lang.String key, TStreamable value) throws TInvocationRequestNotWritableException
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 abstract void close() throws TInvocationRequestNotWritableException
protected abstract boolean isClosed()
public void setLocale(java.util.Locale locale)
public java.util.Locale getLocale()
Copyright (c) 2015 Software AG. All Rights Reserved.