net.rim.device.api.io.http
Interface HttpServerConnection

All Superinterfaces:
Connection, ContentConnection, InputConnection, OutputConnection, StreamConnection

public interface HttpServerConnection
extends ContentConnection

This class is a mirror image of the HttpConnection but defines some additional functionality for server side.

Since:
JDE 4.0.0

Method Summary
 String getHeaderField(int n)
           
 String getHeaderField(String name)
           
 int getHeaderFieldInt(String name, int def)
           
 String getHeaderFieldKey(int n)
           
 String getRequestMethod()
           
 String getRequestURI()
           
 String getResponseProperty(String key)
           
 String getVersion()
           
 void setResponseCode(int code)
           
 void setResponseProperty(String key, String value)
           
 
Methods inherited from interface javax.microedition.io.ContentConnection
getEncoding, getLength, getType
 
Methods inherited from interface javax.microedition.io.InputConnection
openDataInputStream, openInputStream
 
Methods inherited from interface javax.microedition.io.Connection
close
 
Methods inherited from interface javax.microedition.io.OutputConnection
openDataOutputStream, openOutputStream
 

Method Detail

getRequestMethod

public String getRequestMethod()
                        throws IOException
Since:
JDE 4.0.0

getVersion

public String getVersion()
                  throws IOException
Since:
JDE 4.0.0

getRequestURI

public String getRequestURI()
                     throws IOException
Since:
JDE 4.0.0

getHeaderField

public String getHeaderField(int n)
                      throws IOException
Since:
JDE 4.0.2

getHeaderField

public String getHeaderField(String name)
                      throws IOException
Since:
JDE 4.0.2

getHeaderFieldInt

public int getHeaderFieldInt(String name,
                             int def)
                      throws IOException
Since:
JDE 4.0.2

getHeaderFieldKey

public String getHeaderFieldKey(int n)
                         throws IOException
Since:
JDE 4.0.2

getResponseProperty

public String getResponseProperty(String key)
                           throws IOException
Since:
JDE 4.0.2

setResponseProperty

public void setResponseProperty(String key,
                                String value)
                         throws IOException
Since:
JDE 4.0.2

setResponseCode

public void setResponseCode(int code)
                     throws IOException
Since:
JDE 4.0.2


Copyright 1999-2004 Research In Motion Limited. 295 Phillip Street, Waterloo, Ontario, Canada, N2L 3W8. All Rights Reserved.
Copyright 1993-2003 Sun Microsystems, Inc. 901 San Antonio Road, Palo Alto, California, 94303, U.S.A.
Copyright 2002-2003 Nokia Corporation All Rights Reserved.
Java is a trademark or registered trademark of Sun Microsystems, Inc. in the US and other countries.