| 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectelectric.http.OutboundHTTPRequest
OutboundHTTPRequest is an implementation of the standard HttpServletRequest interface.
| Field Summary | 
| Fields inherited from interface electric.glue.IGLUELoggingConstants | 
CLUSTER_DEBUG_EVENT, CLUSTER_EVENT, CONSOLE_DEBUG_EVENT, DEPLOY_EVENT, DETECTORS_EVENT, HTTP_EVENT, JMS_EVENT, REBINDING_EVENT, SECURITY_DEBUG_EVENT, SECURITY_DETAIL_EVENT, SERVLET_EVENT, SOAP_EVENT | 
| Fields inherited from interface electric.xml.IEXMLLoggingConstants | 
MAPPING_EVENT, SCHEMA_EVENT | 
| Fields inherited from interface electric.util.log.ILoggingConstants | 
CLASSLOADER_EVENT, COMMAND_EVENT, COMMENT_EVENT, CONFIG_EVENT, DEBUG_EVENT, ELECTRIC_LOGGING_PROPERTY, ERROR_EVENT, EXCEPTION_EVENT, FILE_EVENT, LICENSE_EVENT, RESOURCES_EVENT, SECURITY_EVENT, SHUTDOWN_EVENT, SOURCE_EVENT, SQL_EVENT, STARTUP_EVENT, WARNING_EVENT | 
| Constructor Summary | |
OutboundHTTPRequest()
 | 
|
OutboundHTTPRequest(IChannel channel)
 | 
|
| Method Summary | |
 void | 
addCookie(ClientCookie cookie)
Add the cookie.  | 
 void | 
addHeader(java.lang.String name,
          java.lang.String value)
Add a header with the specified name and value.  | 
 boolean | 
canResendSource()
 | 
 void | 
flush()
 | 
 void | 
flushHeader()
 | 
 byte[] | 
get(java.lang.String path,
    Context context)
Read the bytes at the specified path using an HTTP GET.  | 
 IChannel | 
getChannel()
 | 
 MIMEHeaders | 
getHeaders()
 | 
 java.lang.String | 
getMethod()
Return the method.  | 
 java.lang.String | 
getQueryString()
Return the query string, or null if there is none.  | 
 java.lang.String | 
getRequestURI()
Return the request URI.  | 
 ISource | 
getSource()
 | 
 java.lang.String | 
getVersion()
 | 
 boolean | 
isKeepAlive()
 | 
 InboundHTTPResponse | 
send(XURL endpoint,
     int maxTries,
     Context context)
 | 
 void | 
setChannel(IChannel channel)
 | 
 void | 
setContentLength(int length)
 | 
 void | 
setContentType(java.lang.String type)
Set my content type.  | 
 void | 
setFlushedHeader(boolean flag)
 | 
 void | 
setHeader(java.lang.String name,
          java.lang.String value)
Set a header with the specified name and value.  | 
 void | 
setMethod(java.lang.String method)
Set the method.  | 
 void | 
setPath(XURL xurl)
Reset to point to the XURL specified.  | 
 void | 
setQueryString(java.lang.String query)
Set the query string.  | 
 void | 
setRequestURI(java.lang.String uri)
Set the request URI.  | 
 void | 
setSource(ISource source)
 | 
 void | 
setVersion(java.lang.String version)
 | 
 java.lang.String | 
toString()
 | 
 void | 
writeHeader()
 | 
 void | 
writeSource()
 | 
| Methods inherited from class java.lang.Object | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait | 
| Constructor Detail | 
public OutboundHTTPRequest()
public OutboundHTTPRequest(IChannel channel)
channel - | Method Detail | 
public java.lang.String toString()
public IChannel getChannel()
public void setChannel(IChannel channel)
channel - public void setVersion(java.lang.String version)
version - public java.lang.String getVersion()
public java.lang.String getMethod()
public void setMethod(java.lang.String method)
method - The new value.public java.lang.String getRequestURI()
public void setRequestURI(java.lang.String uri)
uri - The new value.public java.lang.String getQueryString()
public void setQueryString(java.lang.String query)
query - The new value.public boolean isKeepAlive()
public void writeHeader()
                 throws java.io.IOException
java.io.IOException
public void flushHeader()
                 throws java.io.IOException
java.io.IOExceptionpublic void setFlushedHeader(boolean flag)
flag - public MIMEHeaders getHeaders()
public void setHeader(java.lang.String name,
                      java.lang.String value)
name - The name.value - The value.
public void addHeader(java.lang.String name,
                      java.lang.String value)
name - The name.value - The value.public void setContentLength(int length)
length - public void setContentType(java.lang.String type)
type - The new value.public void addCookie(ClientCookie cookie)
cookie - The cookie.public void setSource(ISource source)
source - public ISource getSource()
public void writeSource()
                 throws java.io.IOException
java.io.IOExceptionpublic boolean canResendSource()
public void flush()
           throws java.io.IOException
java.io.IOException
public InboundHTTPResponse send(XURL endpoint,
                                int maxTries,
                                Context context)
                         throws java.io.IOException,
                                java.lang.SecurityException
endpoint - maxTries - context - 
java.io.IOException
java.lang.SecurityException
public byte[] get(java.lang.String path,
                  Context context)
           throws java.io.IOException,
                  java.lang.SecurityException
path - The path.context - The context.
java.io.IOException - If an I/O exception occurs.
java.lang.SecurityException - If an security exception occurs.public void setPath(XURL xurl)
xurl - 
  | 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||