org.apache.myfaces.extensions.cdi.jsf.api.request
Class AbstractRequestTypeResolver

java.lang.Object
  extended by org.apache.myfaces.extensions.cdi.jsf.api.request.AbstractRequestTypeResolver
All Implemented Interfaces:
Serializable, RequestTypeResolver
Direct Known Subclasses:
DefaultRequestTypeResolver

public abstract class AbstractRequestTypeResolver
extends Object
implements RequestTypeResolver

Base implementation which adds the possibility to provide a custom implementation.

See Also:
Serialized Form

Constructor Summary
AbstractRequestTypeResolver()
           
 
Method Summary
protected abstract  RequestTypeResolver createDefaultRequestTypeResolver()
           
 boolean isPartialRequest()
          Exposes if the current request isn't a full request
 boolean isPostRequest()
          Exposes if the current request is a post request
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractRequestTypeResolver

public AbstractRequestTypeResolver()
Method Detail

isPartialRequest

public boolean isPartialRequest()
Exposes if the current request isn't a full request

Specified by:
isPartialRequest in interface RequestTypeResolver
Returns:
false if the current request is a full request, true otherwise

isPostRequest

public boolean isPostRequest()
Exposes if the current request is a post request

Specified by:
isPostRequest in interface RequestTypeResolver
Returns:
true if the current requset is a post request, true otherwise

createDefaultRequestTypeResolver

protected abstract RequestTypeResolver createDefaultRequestTypeResolver()


Copyright © 2010-2012 The Apache Software Foundation. All Rights Reserved.