net.officefloor.plugin.servlet.bridge
Interface ServletBridge


public interface ServletBridge

Provides the HttpServletRequest and HttpServletResponse from a Servlet container in servicing a request.

Author:
Daniel Sagenschneider

Method Summary
<O> O
getObject(Class<? extends O> objectType)
           Obtains the object by type from the Servlet.
 javax.servlet.http.HttpServletRequest getRequest()
          Obtains the HttpServletRequest.
 javax.servlet.http.HttpServletResponse getResponse()
          Obtains the HttpServletResponse.
 

Method Detail

getRequest

javax.servlet.http.HttpServletRequest getRequest()
Obtains the HttpServletRequest.

Returns:
HttpServletRequest.

getResponse

javax.servlet.http.HttpServletResponse getResponse()
Obtains the HttpServletResponse.

Returns:
HttpServletResponse.

getObject

<O> O getObject(Class<? extends O> objectType)
            throws Exception

Obtains the object by type from the Servlet.

This allows access to the dependency injected objects for the Servlet.

Parameters:
objectType - Type of the Object.
Returns:
Object.
Throws:
Exception - If fails to obtain the object.


Copyright © 2005-2011. All Rights Reserved.