Tabnine Logo
BaseClientResponse.getLocationLink
Code IndexAdd Tabnine to your IDE (free)

How to use
getLocationLink
method
in
org.jboss.resteasy.client.core.BaseClientResponse

Best Java code snippets using org.jboss.resteasy.client.core.BaseClientResponse.getLocationLink (Showing top 2 results out of 315)

origin: org.jboss.resteasy/resteasy-jaxrs-20

/**
* Automatically does POST/Create pattern.  Will throw a ClientResponseFailure
* if status is something other than 201
*
* @return Link to created resource
* @throws Exception, ClientResponseFailure
*/
public Link create() throws Exception, ClientResponseFailure
{
 BaseClientResponse response = (BaseClientResponse) post();
 if (response.getStatus() != 201) throw new ClientResponseFailure(response);
 return response.getLocationLink();
}
origin: org.jboss.resteasy/resteasy-legacy

/**
* Automatically does POST/Create pattern.  Will throw a ClientResponseFailure
* if status is something other than 201
*
* @return Link to created resource
* @throws Exception, ClientResponseFailure
*/
public Link create() throws Exception, ClientResponseFailure
{
 BaseClientResponse response = (BaseClientResponse) post();
 if (response.getStatus() != 201) throw new ClientResponseFailure(response);
 return response.getLocationLink();
}
org.jboss.resteasy.client.coreBaseClientResponsegetLocationLink

Popular methods of BaseClientResponse

  • getStreamFactory
  • setReturnType
  • getEntity
  • getMetadata
  • getStatus
  • <init>
  • setAnnotations
  • setAttributeExceptionsTo
  • setHeaders
  • setProviderFactory
  • setStatus
  • checkFailureStatus
  • setStatus,
  • checkFailureStatus,
  • copyFromError,
  • createResponseFailure,
  • getAnnotations,
  • getLinkHeader,
  • getMediaType,
  • getResponseHeader,
  • getResponseHeaders

Popular in Java

  • Reactive rest calls using spring rest template
  • runOnUiThread (Activity)
  • getContentResolver (Context)
  • compareTo (BigDecimal)
  • ConnectException (java.net)
    A ConnectException is thrown if a connection cannot be established to a remote host on a specific po
  • URLConnection (java.net)
    A connection to a URL for reading or writing. For HTTP connections, see HttpURLConnection for docume
  • CountDownLatch (java.util.concurrent)
    A synchronization aid that allows one or more threads to wait until a set of operations being perfor
  • ReentrantLock (java.util.concurrent.locks)
    A reentrant mutual exclusion Lock with the same basic behavior and semantics as the implicit monitor
  • Stream (java.util.stream)
    A sequence of elements supporting sequential and parallel aggregate operations. The following exampl
  • Join (org.hibernate.mapping)
  • Top 12 Jupyter Notebook extensions
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now