|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.glassfish.jersey.server.model.AbstractResourceMethod
public abstract class AbstractResourceMethod
Abstraction for a resource method defined by a HTTP method and consumed/produced media type list.
ResourceClass| Constructor Summary | |
|---|---|
AbstractResourceMethod(ResourceClass resource,
String httpMethod)
Constructs a new resource method associated with given resource. |
|
| Method Summary | |
|---|---|
boolean |
areInputTypesDeclared()
Provides information on whether consumed media types were explicitly configured for this component. |
boolean |
areOutputTypesDeclared()
Provides information on whether produced media types were explicitly configured for this component. |
void |
declareSuspend(long timeout,
TimeUnit unit)
Mark the component for suspending. |
List<ResourceModelComponent> |
getComponents()
Should return all existing resource model sub-components. |
ResourceClass |
getDeclaringResource()
Enclosing resource class getter. |
String |
getHttpMethod()
|
List<javax.ws.rs.core.MediaType> |
getSupportedInputTypes()
Getter for consumed media types. |
List<javax.ws.rs.core.MediaType> |
getSupportedOutputTypes()
Getter for produced media types. |
long |
getSuspendTimeout()
Get the suspend timeout value in the given time unit. |
TimeUnit |
getSuspendTimeoutUnit()
Get the suspend timeout value time unit. |
boolean |
isSuspendDeclared()
Check if the component is marked for suspending. |
void |
setAreInputTypesDeclared(boolean declared)
Setter for information on how the consumed media types were configured. |
void |
setAreOutputTypesDeclared(boolean declared)
Setter for information on how the produced media types were configured. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.glassfish.jersey.server.model.ResourceModelComponent |
|---|
accept |
| Constructor Detail |
|---|
public AbstractResourceMethod(ResourceClass resource,
String httpMethod)
resource - resource class where the new resource method should belong tohttpMethod - corresponding HTTP method (e.g. "GET", "PUT", etc.)| Method Detail |
|---|
public ResourceClass getDeclaringResource()
public List<javax.ws.rs.core.MediaType> getSupportedInputTypes()
getSupportedInputTypes in interface ConsumesProducesEnabledComponentareInputTypesDeclared()public void setAreInputTypesDeclared(boolean declared)
ConsumesProducesEnabledComponent
setAreInputTypesDeclared in interface ConsumesProducesEnabledComponentdeclared - public boolean areInputTypesDeclared()
ConsumesProducesEnabledComponent
areInputTypesDeclared in interface ConsumesProducesEnabledComponentpublic List<javax.ws.rs.core.MediaType> getSupportedOutputTypes()
ConsumesProducesEnabledComponent
getSupportedOutputTypes in interface ConsumesProducesEnabledComponentConsumesProducesEnabledComponent.areOutputTypesDeclared()public void setAreOutputTypesDeclared(boolean declared)
ConsumesProducesEnabledComponent
setAreOutputTypesDeclared in interface ConsumesProducesEnabledComponentdeclared - should be set to true if produced media types were configured
explicitly.public boolean areOutputTypesDeclared()
ConsumesProducesEnabledComponent
areOutputTypesDeclared in interface ConsumesProducesEnabledComponentpublic long getSuspendTimeout()
SuspendableComponenttime unit.
getSuspendTimeout in interface SuspendableComponent@Suspend.timeOut()public TimeUnit getSuspendTimeoutUnit()
SuspendableComponenttimeout value time unit.
getSuspendTimeoutUnit in interface SuspendableComponent@Suspend.timeUnit()public boolean isSuspendDeclared()
SuspendableComponent
isSuspendDeclared in interface SuspendableComponenttrue if the component is marked for suspending,
false otherwise.
public void declareSuspend(long timeout,
TimeUnit unit)
SuspendableComponent
declareSuspend in interface SuspendableComponenttimeout - suspend timeout value.unit - suspend timeout time unit.public String getHttpMethod()
public List<ResourceModelComponent> getComponents()
ResourceModelComponent
getComponents in interface ResourceModelComponentpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||