Skip navigation links


com.essbase.eas.net
Class HttpMessage

java.lang.Object
  extended by com.essbase.eas.net.HttpMessage


public class HttpMessage
extends java.lang.Object

HttpMessage: Generic utility class for making HTTP requests to a servlet

Version:
1.0.0, 08/01/2000 Created 1.1.0, 08/30/2000 Added PUT method
Author:
Brian Litofsky

Nested Class Summary
 class HttpMessage.ClientHostnameVerifier
           

 

Field Summary
static java.lang.String EAS_HOME
           
static java.lang.String FILE_SEPARATOR
           

 

Constructor Summary
HttpMessage(java.net.URL servlet)
           

 

Method Summary
 boolean canSecureMessages()
           
 java.lang.Exception getException()
           
 boolean getSecureAllMessages()
           
 java.io.InputStream sendPostMessage(boolean secure)
          Performs a POST request with no query string
 java.io.InputStream sendPostMessage(java.util.Properties args, boolean secure)
          Performs a POST request with the parameter from the supplied Properties list.
 java.io.InputStream sendPutMessage(byte[] data, boolean secure)
          Performs a PUT request with the parameter from the supplied Properties list.
 void setSecureAllMessages(boolean setSecure)
           
 void setSecureURL()
           

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Field Detail

EAS_HOME

public static final java.lang.String EAS_HOME

FILE_SEPARATOR

public static final java.lang.String FILE_SEPARATOR

Constructor Detail

HttpMessage

public HttpMessage(java.net.URL servlet)
            throws java.io.IOException
Throws:
java.io.IOException

Method Detail

setSecureURL

public void setSecureURL()
                  throws java.io.IOException
Throws:
java.io.IOException

getException

public java.lang.Exception getException()

setSecureAllMessages

public void setSecureAllMessages(boolean setSecure)

getSecureAllMessages

public boolean getSecureAllMessages()

canSecureMessages

public boolean canSecureMessages()

sendPostMessage

public java.io.InputStream sendPostMessage(boolean secure)
                                    throws java.io.IOException
Performs a POST request with no query string
Returns:
InputStream: Reply to the post command
Throws:
java.io.IOException

sendPostMessage

public java.io.InputStream sendPostMessage(java.util.Properties args,
                                           boolean secure)
                                    throws java.io.IOException
Performs a POST request with the parameter from the supplied Properties list.
Parameters:
args - Property list of arguments to the command
Returns:
Stream of the reply to the post command
Throws:
java.io.IOException

sendPutMessage

public java.io.InputStream sendPutMessage(byte[] data,
                                          boolean secure)
                                   throws java.io.IOException
Performs a PUT request with the parameter from the supplied Properties list.
Parameters:
data - The data to send to the servlet
Returns:
Stream of the reply to the post command
Throws:
java.io.IOException

Skip navigation links


Copyright © 2001, 2012, Oracle. All rights reserved.