Deprecated API


Contents
Deprecated Classes
org.restlet.service.ConverterService
          Since 1.1 with no replacement as it doesn't fit well with content negotiation. Most users prefer to handle those conversion in Resource subclasses. 
 

Deprecated Fields
org.restlet.data.ChallengeScheme.HTTP_AWS
          Use the ChallengeScheme.HTTP_AWS_S3 scheme instead. 
org.restlet.data.Protocol.SMTP_STARTTLS
          Use the "startTls" parameter on the JavaMail connector instead. 
org.restlet.resource.Variant.UNKNOWN_SIZE
          Use the Representation.UNKNOWN_SIZE constant instead. 
 

Deprecated Methods
org.restlet.Guard.challenge(Response)
          Use the Guard.challenge(Response, boolean) method instead. 
org.restlet.Guard.checkSecret(String, char[])
          Use the Guard.checkSecret(Request, String, char[]) method instead. 
org.restlet.Finder.createResource(Request, Response)
          Use the Finder.createTarget(Request, Response) instead. 
org.restlet.resource.Resource.delete()
          Use the Resource.removeRepresentations() method instead. 
org.restlet.data.Response.getChallengeRequest()
          Use the Response.getChallengeRequests() method instead. 
org.restlet.util.WrapperResponse.getChallengeRequest()
          Use the WrapperResponse.getChallengeRequests() instead. 
org.restlet.service.TunnelService.getCharacterSetAttribute()
          Use getCharacterSetParameter instead. 
org.restlet.Application.getConverterService()
          Since 1.1 with no replacement as it doesn't fit well with content negotiation. Most users prefer to handle those conversion in Resource subclasses. 
org.restlet.Context.getDispatcher()
          Use getClientDispatcher() instead. 
org.restlet.service.TunnelService.getEncodingAttribute()
          Use getEncodingParameter instead. 
org.restlet.data.Message.getEntityAsObject()
          Since 1.1, the ConverterService is deprecated, with no replacement as it doesn't fit well with content negotiation. Most users prefer to handle those conversion in Resource subclasses. 
org.restlet.util.WrapperRequest.getEntityAsObject()
          Since 1.1, the ConverterService is deprecated, with no replacement as it doesn't fit well with content negotiation. Most users prefer to handle those conversion in Resource subclasses. 
org.restlet.util.WrapperResponse.getEntityAsObject()
          Since 1.1, the ConverterService is deprecated, with no replacement as it doesn't fit well with content negotiation. Most users prefer to handle those conversion in Resource subclasses. 
org.restlet.resource.Variant.getExpirationDate()
          Use the Representation.getExpirationDate() method instead. 
org.restlet.service.TunnelService.getLanguageAttribute()
          Use getLanguageParameter instead. 
org.restlet.service.MetadataService.getMappings()
          . 
org.restlet.service.TunnelService.getMediaTypeAttribute()
          Use getMediaTypeParameter instead. 
org.restlet.resource.Variant.getModificationDate()
          Use the Representation.getModificationDate() method instead. 
org.restlet.resource.Resource.getPreferredRepresentation()
          Use the Resource.represent() method instead. 
org.restlet.data.Response.getRedirectRef()
          Use getLocationRef() instead. 
org.restlet.util.WrapperResponse.getRedirectRef()
          Use the getLocationRef() method instead. 
org.restlet.resource.Resource.getRepresentation(Variant)
          Use the Resource.represent(Variant) method instead. 
org.restlet.resource.Variant.getSize()
          Use the Representation.getSize() method instead. 
org.restlet.resource.Variant.getTag()
          Use the Representation.getTag() method instead. 
org.restlet.resource.TransformRepresentation.getURIResolver()
          Use the getUriResolver method instead. 
org.restlet.Restlet.init(Request, Response)
          Instead, make sure that you call the Restlet.handle(Request, Response) method from your Restlet superclass. 
org.restlet.data.Status.isInfo()
          Use Status.isInformational() instead. 
org.restlet.data.Status.isInfo(int)
          Use Status.isInformational(int) instead. 
org.restlet.resource.Resource.post(Representation)
          Use the Resource.acceptRepresentation(Representation) method instead. 
org.restlet.resource.Resource.put(Representation)
          Use the Resource.storeRepresentation(Representation) method instead. 
org.restlet.service.TunnelService.setCharacterSetAttribute(String)
          Use setCharacterSetParameter instead. 
org.restlet.Application.setConverterService(ConverterService)
          Since 1.1 with no replacement as it doesn't fit well with content negotiation. Most users prefer to handle those conversion in Resource subclasses. 
org.restlet.service.TunnelService.setEncodingAttribute(String)
          Use setEncodingParameter instead. 
org.restlet.data.Message.setEntity(Object)
          Since 1.1, the ConverterService is deprecated, with no replacement as it doesn't fit well with content negotiation. Most users prefer to handle those conversion in Resource subclasses. 
org.restlet.util.WrapperRequest.setEntity(Object)
          Since 1.1, the ConverterService is deprecated, with no replacement as it doesn't fit well with content negotiation. Most users prefer to handle those conversion in Resource subclasses. 
org.restlet.util.WrapperResponse.setEntity(Object)
          Since 1.1, the ConverterService is deprecated, with no replacement as it doesn't fit well with content negotiation. Most users prefer to handle those conversion in Resource subclasses. 
org.restlet.resource.Variant.setExpirationDate(Date)
          Use the Representation.setExpirationDate(Date) method instead. 
org.restlet.service.TunnelService.setLanguageAttribute(String)
          Use setLanguageParameter instead. 
org.restlet.service.MetadataService.setMappings(Map)
            
org.restlet.service.TunnelService.setMediaTypeAttribute(String)
          Use setMediaTypeParameter instead. 
org.restlet.resource.Variant.setModificationDate(Date)
          Use the Representation.setModificationDate(Date) method instead. 
org.restlet.data.Response.setRedirectRef(Reference)
          Use the setLocationRef() method instead. 
org.restlet.util.WrapperResponse.setRedirectRef(Reference)
          Use the setLocationRef() method instead. 
org.restlet.data.Response.setRedirectRef(String)
          Use the setLocationRef() method instead. 
org.restlet.util.WrapperResponse.setRedirectRef(String)
          Use the setLocationRef() method instead. 
org.restlet.resource.Variant.setSize(long)
          Use the Representation.setSize(long) method instead. 
org.restlet.resource.Variant.setTag(Tag)
          Use the Representation.setTag(Tag) method instead. 
 

Deprecated Constructors
org.restlet.data.Form(Logger, Representation)
          Use the constructor without logger instead. 
org.restlet.data.Form(Logger, String, CharacterSet)
          Use the constructor without logger instead. 
org.restlet.data.Form(Logger, String, CharacterSet, char)
          Use the constructor without logger instead. 
org.restlet.util.Template(Logger, String)
          Use the constructor with logger instead. The logger can still be set using the Template.setLogger(Logger) method. 
org.restlet.util.Template(Logger, String, int)
          Use the constructor with logger instead. The logger can still be set using the Template.setLogger(Logger) method. 
org.restlet.util.Template(Logger, String, int, int, String, boolean, boolean)
          Use the constructor with logger instead. The logger can still be set using the Template.setLogger(Logger) method. 
org.restlet.util.Template(Logger, String, int, int, String, boolean, boolean, boolean)
          Use the constructor with logger instead. The logger can still be set using the Template.setLogger(Logger) method. 
 



Copyright © 2005-2008 Noelios Technologies.