javax.servlet
Interface ServletRequest
- All Known Subinterfaces:
- HttpServletRequest
- All Known Implementing Classes:
- HttpServletRequestWrapper, ServletRequestWrapper
- public interface ServletRequest
JML's specification of ServletRequest
Specifications inherited from class Object |
represents objectState <- org.jmlspecs.lang.JMLDataGroup.IT;
public represents _getClass <- \typeof(this); |
getAttribute
public Object getAttribute(String name)
getAttributeNames
public Enumeration getAttributeNames()
- Specifications:
-
ensures \result != null&&\result .elementType == java.lang.String.class;
getCharacterEncoding
public String getCharacterEncoding()
setCharacterEncoding
public void setCharacterEncoding(String env)
throws UnsupportedEncodingException
- Throws:
UnsupportedEncodingException
getContentLength
public int getContentLength()
getContentType
public String getContentType()
getInputStream
public ServletInputStream getInputStream()
throws IOException
- Throws:
IOException
getParameter
public String getParameter(String name)
- Specifications:
-
assignable \nothing;
getParameterNames
public Enumeration getParameterNames()
- Specifications:
-
ensures \result != null&&\result .elementType == java.lang.String.class;
getParameterValues
public String[] getParameterValues(String name)
getParameterMap
public Map getParameterMap()
getProtocol
public String getProtocol()
getScheme
public String getScheme()
getServerName
public String getServerName()
getServerPort
public int getServerPort()
getReader
public BufferedReader getReader()
throws IOException
- Throws:
IOException
getRemoteAddr
public String getRemoteAddr()
getRemoteHost
public String getRemoteHost()
setAttribute
public void setAttribute(String name,
Object o)
- Specifications:
-
public behavior
assignable objectState;
removeAttribute
public void removeAttribute(String name)
getLocale
public Locale getLocale()
getLocales
public Enumeration getLocales()
isSecure
public boolean isSecure()
getRequestDispatcher
public RequestDispatcher getRequestDispatcher(String path)
getRealPath
public String getRealPath(String path)
- Deprecated.
getRemotePort
public int getRemotePort()
getLocalName
public String getLocalName()
getLocalAddr
public String getLocalAddr()
getLocalPort
public int getLocalPort()
JML is Copyright (C) 1998-2002 by Iowa State University and is distributed under the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This release depends on code from the MultiJava project and is based in part on the Kopi project Copyright (C) 1990-99 DMS Decision Management Systems Ges.m.b.H.