org.codehaus.enunciate.contract.jaxrs
Class ResourceMethodMediaType

java.lang.Object
  extended by org.codehaus.enunciate.contract.jaxrs.ResourceMethodMediaType

public class ResourceMethodMediaType
extends java.lang.Object

A media type for a resource method.

Author:
Ryan Heaton

Constructor Summary
ResourceMethodMediaType()
           
 
Method Summary
 java.util.Set<java.lang.String> getSubcontexts()
          Any additional subcontexts where requests for this specific type might be mounted.
 java.lang.String getType()
          The content type.
 boolean isConsumable()
          Whether the content type is consumable by the resource.
 boolean isProduceable()
          Whether the content type is produceable by the resource.
 void setConsumable(boolean consumable)
          Whether the content type is consumable by the resource.
 void setProduceable(boolean produceable)
          Whether the content type is produceable by the resource.
 void setSubcontexts(java.util.Set<java.lang.String> subcontexts)
          Any additional subcontexts where requests for this specific type might be mounted.
 void setType(java.lang.String type)
          The content type.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResourceMethodMediaType

public ResourceMethodMediaType()
Method Detail

getType

public java.lang.String getType()
The content type.

Returns:
The content type.

setType

public void setType(java.lang.String type)
The content type.

Parameters:
type - The content type.

isConsumable

public boolean isConsumable()
Whether the content type is consumable by the resource.

Returns:
Whether the content type is consumable by the resource.

setConsumable

public void setConsumable(boolean consumable)
Whether the content type is consumable by the resource.

Parameters:
consumable - Whether the content type is consumable by the resource.

isProduceable

public boolean isProduceable()
Whether the content type is produceable by the resource.

Returns:
Whether the content type is produceable by the resource.

setProduceable

public void setProduceable(boolean produceable)
Whether the content type is produceable by the resource.

Parameters:
produceable - Whether the content type is produceable by the resource.

getSubcontexts

public java.util.Set<java.lang.String> getSubcontexts()
Any additional subcontexts where requests for this specific type might be mounted.

Returns:
Any additional subcontexts where requests for this specific type might be mounted.

setSubcontexts

public void setSubcontexts(java.util.Set<java.lang.String> subcontexts)
Any additional subcontexts where requests for this specific type might be mounted.

Parameters:
subcontexts - Any additional subcontexts where requests for this specific type might be mounted.