Package de.bottlecaps.webapp.server
Class HttpRequest
- java.lang.Object
-
- de.bottlecaps.webapp.server.HttpRequest
-
-
Constructor Summary
Constructors Constructor Description HttpRequest(com.sun.net.httpserver.HttpExchange httpExchange)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getCharacterEncoding()
java.lang.String
getContentType()
java.lang.String
getContextPath()
Cookie[]
getCookies()
java.lang.String
getHeader(java.lang.String name)
java.lang.Object
getMethod()
void
getMultiParts()
java.util.Enumeration<java.lang.String>
getParameterNames()
java.lang.String[]
getParameterValues(java.lang.String name)
MultiPart
getPart(java.lang.String partName)
java.util.Collection<MultiPart>
getParts()
java.lang.String
getPathInfo()
java.lang.String
getRequestURI()
-
-
-
Method Detail
-
getContextPath
public java.lang.String getContextPath()
- Specified by:
getContextPath
in interfaceRequest
-
getParts
public java.util.Collection<MultiPart> getParts() throws java.io.IOException
-
getPart
public MultiPart getPart(java.lang.String partName) throws java.io.IOException
-
getCharacterEncoding
public java.lang.String getCharacterEncoding()
- Specified by:
getCharacterEncoding
in interfaceRequest
-
getParameterNames
public java.util.Enumeration<java.lang.String> getParameterNames()
- Specified by:
getParameterNames
in interfaceRequest
-
getParameterValues
public java.lang.String[] getParameterValues(java.lang.String name)
- Specified by:
getParameterValues
in interfaceRequest
-
getContentType
public java.lang.String getContentType()
- Specified by:
getContentType
in interfaceRequest
-
getHeader
public java.lang.String getHeader(java.lang.String name)
-
getCookies
public Cookie[] getCookies()
- Specified by:
getCookies
in interfaceRequest
-
getMultiParts
public void getMultiParts() throws java.lang.Exception
- Throws:
java.lang.Exception
-
getPathInfo
public java.lang.String getPathInfo()
- Specified by:
getPathInfo
in interfaceRequest
-
getRequestURI
public java.lang.String getRequestURI()
- Specified by:
getRequestURI
in interfaceRequest
-
-