|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.ibm.commerce.messaging.composer.JSPInvokerConnection
An implemtation of an IOSEConnection object used to call another servlet.
Constructor Summary | |
JSPInvokerConnection()
Constructs the JSPInvokerConnection object. |
Method Summary | |
void |
flush()
Clears the input and output stream. |
java.lang.Object |
getAttribute(java.lang.String name)
Returns the attribute for the specified name. |
java.lang.String |
getAuthType()
Returns the authentication type. |
int |
getContentLength()
Returns the content length. |
java.lang.String |
getContentType()
Returns the content type. |
java.lang.String |
getCookieValue(java.lang.String name)
Returns the cookie value. |
byte[] |
getCredBuf()
Returns the credential buffer. |
void |
getHeaders(java.lang.String[][] nameValues)
Sets the given nameValue parameter to the header names and values. |
java.lang.String |
getMethod()
Returns the request method. |
java.lang.String |
getMimeType(java.lang.String ext)
Returns the mime type. |
java.lang.String |
getProtocol()
Returns the protocol. |
java.lang.String |
getQueryString()
Returns the query string. |
java.lang.String |
getRealPath(java.lang.String path)
Returns the real path. |
java.lang.String |
getRemoteAddr()
Returns the remote address. |
java.lang.String |
getRemoteHost()
Returns the remote host. |
java.lang.String |
getRemoteUser()
Returns the remote user. |
java.lang.String |
getRequestURI()
Returns the request URI. |
java.lang.String |
getScheme()
Returns the scheme. |
java.lang.String |
getServerName()
Returns the server name. |
int |
getServerPort()
Returns the server port. |
java.lang.String |
getServletCode()
Returns the servlet code. |
java.lang.String |
getServletCodeBase()
Returns the servlet code base. |
java.util.Properties |
getServletExtraParameters()
Returns the servlet extra parameters. |
java.util.Properties |
getServletInitProperties()
Returns the servlet initialization properties. |
java.lang.String |
getServletName()
Returns the servlet name. |
byte[] |
getSessionId()
Dummy method which will always return null |
void |
init(java.lang.String _method,
java.lang.String _requestURI,
java.lang.String _queryString,
java.lang.String _remoteUser,
java.lang.String _authType,
java.lang.String[] _headerNames,
java.lang.String[] _headerValues,
int _contentLength,
java.lang.String _contentType,
java.lang.String _protocol,
java.lang.String _serverName,
int _serverPort,
java.lang.String _remoteHost,
java.lang.String _remoteAddr,
java.lang.String _scheme,
java.io.InputStream _inStream,
java.io.OutputStream _outStream)
Initializes the object. |
boolean |
isCredBufAvail()
Determines whether the buffer is available. |
boolean |
isServletInvoke()
Determines whether the servlet should be invoked. |
boolean |
isSSL()
Returns whether the request object is SSL. |
boolean |
isThreadSafe()
Returns whether the object is thread safe. |
void |
prepareForWrite(int statusCode,
java.lang.String statusMessage,
java.lang.String[] respHeaderNames,
java.lang.String[] respHeaderValues,
int numRespHeaders)
Preparation to right the result. |
int |
read()
Reads from the input stream. |
int |
read(byte[] buf,
int offset,
int length)
Reads from the input stream. |
boolean |
sendError(int errorCode,
java.lang.String reason,
java.lang.String message)
sendError method comment. |
void |
setAttribute(java.lang.String name,
java.lang.Object value)
Sets the attributes of the request. |
void |
write(byte[] buf,
int offset,
int length)
Writes the buf to the output stream base on the offset and lenght. |
void |
write(int b)
Writes the int to the output stream. |
Constructor Detail |
public JSPInvokerConnection()
Method Detail |
public void flush() throws java.io.IOException
public java.lang.Object getAttribute(java.lang.String name)
name
- java.lang.String The name of the Attribute.public java.lang.String getAuthType()
public int getContentLength()
public java.lang.String getContentType()
public java.lang.String getCookieValue(java.lang.String name)
public byte[] getCredBuf()
public void getHeaders(java.lang.String[][] nameValues)
nameValues
- java.lang.String[][] The header name and values. Will be set by the method.public java.lang.String getMethod()
public java.lang.String getMimeType(java.lang.String ext)
public java.lang.String getProtocol()
public java.lang.String getQueryString()
public java.lang.String getRealPath(java.lang.String path)
public java.lang.String getRemoteAddr()
public java.lang.String getRemoteHost()
public java.lang.String getRemoteUser()
public java.lang.String getRequestURI()
public java.lang.String getScheme()
public java.lang.String getServerName()
public int getServerPort()
public java.lang.String getServletCode()
public java.lang.String getServletCodeBase()
public java.util.Properties getServletExtraParameters()
public java.util.Properties getServletInitProperties()
public java.lang.String getServletName()
public byte[] getSessionId()
public void init(java.lang.String _method, java.lang.String _requestURI, java.lang.String _queryString, java.lang.String _remoteUser, java.lang.String _authType, java.lang.String[] _headerNames, java.lang.String[] _headerValues, int _contentLength, java.lang.String _contentType, java.lang.String _protocol, java.lang.String _serverName, int _serverPort, java.lang.String _remoteHost, java.lang.String _remoteAddr, java.lang.String _scheme, java.io.InputStream _inStream, java.io.OutputStream _outStream)
public boolean isCredBufAvail()
public boolean isServletInvoke()
public boolean isSSL()
public boolean isThreadSafe()
public void prepareForWrite(int statusCode, java.lang.String statusMessage, java.lang.String[] respHeaderNames, java.lang.String[] respHeaderValues, int numRespHeaders)
statusCode
- int The status code.statusMessage
- java.lang.String The status message.respHeaderNames
- java.lang.String[] The response header attribute names.respHeaderValues
- java.lang.String[] The response header attribute values.numRespHeaders
- int The number of attributes in the response header.public int read() throws java.io.IOException
java.io.IOException
- public int read(byte[] buf, int offset, int length) throws java.io.IOException
buf
- byte[] The byte array to place the bytes read.offset
- int The position to start reading bytes.length
- int The number of bytes to read.java.io.IOException
- public boolean sendError(int errorCode, java.lang.String reason, java.lang.String message) throws java.io.IOException
public void setAttribute(java.lang.String name, java.lang.Object value)
name
- java.lang.String The name of the attribute.value
- java.lang.Object The value of the attribute.public void write(byte[] buf, int offset, int length) throws java.io.IOException
buf
- byte[] The bytes to write.offset
- int The offset of the byte array to start writing.lenght
- int The number of bytes to write.java.io.IOException
- public void write(int b) throws java.io.IOException
b
- int The value to write.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |