org.openrdf.workbench.util
Class WorkbenchRequest

java.lang.Object
  extended by javax.servlet.ServletRequestWrapper
      extended by javax.servlet.http.HttpServletRequestWrapper
          extended by org.openrdf.workbench.util.WorkbenchRequest
All Implemented Interfaces:
javax.servlet.http.HttpServletRequest, javax.servlet.ServletRequest

public class WorkbenchRequest
extends javax.servlet.http.HttpServletRequestWrapper


Field Summary
 
Fields inherited from interface javax.servlet.http.HttpServletRequest
BASIC_AUTH, CLIENT_CERT_AUTH, DIGEST_AUTH, FORM_AUTH
 
Constructor Summary
WorkbenchRequest(Repository repository, javax.servlet.http.HttpServletRequest request, Map<String,String> defaults)
           
 
Method Summary
 InputStream getContentParameter()
           
 int getInt(String name)
           
 String getParameter(String name)
           
 String[] getParameterValues(String name)
           
 Resource getResource(String name)
           
 Map<String,String> getSingleParameterMap()
           
 String getTypeParameter()
           
 URI getURI(String name)
           
 URL getUrl(String name)
           
 Value getValue(String name)
           
 boolean isParameterPresent(String name)
           
 
Methods inherited from class javax.servlet.http.HttpServletRequestWrapper
getAuthType, getContextPath, getCookies, getDateHeader, getHeader, getHeaderNames, getHeaders, getIntHeader, getMethod, getPathInfo, getPathTranslated, getQueryString, getRemoteUser, getRequestedSessionId, getRequestURI, getRequestURL, getServletPath, getSession, getSession, getUserPrincipal, isRequestedSessionIdFromCookie, isRequestedSessionIdFromUrl, isRequestedSessionIdFromURL, isRequestedSessionIdValid, isUserInRole
 
Methods inherited from class javax.servlet.ServletRequestWrapper
getAttribute, getAttributeNames, getCharacterEncoding, getContentLength, getContentType, getInputStream, getLocalAddr, getLocale, getLocales, getLocalName, getLocalPort, getParameterMap, getParameterNames, getProtocol, getReader, getRealPath, getRemoteAddr, getRemoteHost, getRemotePort, getRequest, getRequestDispatcher, getScheme, getServerName, getServerPort, isSecure, removeAttribute, setAttribute, setCharacterEncoding, setRequest
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.servlet.ServletRequest
getAttribute, getAttributeNames, getCharacterEncoding, getContentLength, getContentType, getInputStream, getLocalAddr, getLocale, getLocales, getLocalName, getLocalPort, getParameterMap, getParameterNames, getProtocol, getReader, getRealPath, getRemoteAddr, getRemoteHost, getRemotePort, getRequestDispatcher, getScheme, getServerName, getServerPort, isSecure, removeAttribute, setAttribute, setCharacterEncoding
 

Constructor Detail

WorkbenchRequest

public WorkbenchRequest(Repository repository,
                        javax.servlet.http.HttpServletRequest request,
                        Map<String,String> defaults)
                 throws RepositoryException,
                        IOException,
                        org.apache.commons.fileupload.FileUploadException
Throws:
RepositoryException
IOException
org.apache.commons.fileupload.FileUploadException
Method Detail

getContentParameter

public InputStream getContentParameter()
                                throws RepositoryException,
                                       BadRequestException,
                                       IOException,
                                       org.apache.commons.fileupload.FileUploadException
Throws:
RepositoryException
BadRequestException
IOException
org.apache.commons.fileupload.FileUploadException

getInt

public int getInt(String name)
           throws BadRequestException
Throws:
BadRequestException

getParameter

public String getParameter(String name)
Specified by:
getParameter in interface javax.servlet.ServletRequest
Overrides:
getParameter in class javax.servlet.ServletRequestWrapper

getParameterValues

public String[] getParameterValues(String name)
Specified by:
getParameterValues in interface javax.servlet.ServletRequest
Overrides:
getParameterValues in class javax.servlet.ServletRequestWrapper

isParameterPresent

public boolean isParameterPresent(String name)

getResource

public Resource getResource(String name)
                     throws BadRequestException,
                            RepositoryException
Throws:
BadRequestException
RepositoryException

getSingleParameterMap

public Map<String,String> getSingleParameterMap()

getTypeParameter

public String getTypeParameter()

getURI

public URI getURI(String name)
           throws BadRequestException,
                  RepositoryException
Throws:
BadRequestException
RepositoryException

getUrl

public URL getUrl(String name)
           throws RepositoryException,
                  BadRequestException,
                  IOException,
                  org.apache.commons.fileupload.FileUploadException
Throws:
RepositoryException
BadRequestException
IOException
org.apache.commons.fileupload.FileUploadException

getValue

public Value getValue(String name)
               throws BadRequestException,
                      RepositoryException
Throws:
BadRequestException
RepositoryException


Copyright © 2001-2010 Aduna. All Rights Reserved.