com.caucho.server.security
Class TransportConstraint

java.lang.Object
  extended by com.caucho.server.security.AbstractConstraint
      extended by com.caucho.server.security.TransportConstraint

public class TransportConstraint
extends AbstractConstraint


Constructor Summary
TransportConstraint()
           
TransportConstraint(java.lang.String transport)
           
 
Method Summary
 AuthorizationResult isAuthorized(HttpServletRequest request, HttpServletResponse response, ServletContext application)
          Returns true if the user is authorized for the resource.
 boolean isPrivateCache()
          Returns true if any cache needs to be private.
 void setTransportGuarantee(java.lang.String transportGuarantee)
           
 
Methods inherited from class com.caucho.server.security.AbstractConstraint
needsAuthentication, toArray
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TransportConstraint

public TransportConstraint()

TransportConstraint

public TransportConstraint(java.lang.String transport)
Method Detail

setTransportGuarantee

public void setTransportGuarantee(java.lang.String transportGuarantee)

isPrivateCache

public boolean isPrivateCache()
Returns true if any cache needs to be private.

Overrides:
isPrivateCache in class AbstractConstraint

isAuthorized

public AuthorizationResult isAuthorized(HttpServletRequest request,
                                        HttpServletResponse response,
                                        ServletContext application)
                                 throws ServletException,
                                        java.io.IOException
Returns true if the user is authorized for the resource.

Specified by:
isAuthorized in class AbstractConstraint
Parameters:
request - the servlet request
response - the servlet response
Returns:
true if the request is authorized.
Throws:
ServletException
java.io.IOException