@Test public void testGetRawCodeReturnsZeroForNullCode() { Request ping = new Request(null, Type.CON); assertThat(ping.getRawCode(), is(0)); }
@Override public int getRawCode() { return code == null ? 0 : code.value; }
Request extends Message { @Override public int getRawCode() { return code == null ? 0 : code.value; } }
Request extends Message { @Override public int getRawCode() { return code == null ? 0 : code.value; } Request(Code code);  Request(Code code, Type type); }
Request extends Message { @Override public int getRawCode() { return code == null ? 0 : code.value; } Request(Code code);  Request(Code code, Type type); Code getCode(); @Override int getRawCode(); String getScheme(); void setScheme(String scheme); boolean isMulticast(); @Override boolean isIntendedPayload(); @Override Request setPayload(String payload); @Override Request setPayload(byte[] payload); Request setProxyUri(String proxyUri); boolean hasProxyURI(); Request setProxyScheme(String proxyScheme); Request setURI(final String uri); Request setURI(final URI uri); Request setOptions(final URI uri); void setUriIsApplied(); boolean hasURI(); String getURI(); @Deprecated InetAddress getDestination(); @Deprecated Message setDestination(InetAddress destination); @Deprecated int getDestinationPort(); @Deprecated Message setDestinationPort(int destinationPort); @Deprecated Principal getSenderIdentity(); @Deprecated void prepareDestinationContext(); @Override Request setDestinationContext(EndpointContext peerContext); Request send(); Request send(Endpoint endpoint); final Request setObserve(); final boolean isObserve(); final Request setObserveCancel(); final boolean isObserveCancel(); synchronized Response getResponse(); void setResponse(Response response); Response waitForResponse(); Response waitForResponse(long timeout); @Override void setTimedOut(boolean timedOut); @Override void setCanceled(boolean canceled); @Override void setRejected(boolean rejected); @Override void setSendError(Throwable sendError); Throwable getOnResponseError(); void setOnResponseError(Throwable cause); Map<String, String> getUserContext(); Request setUserContext(Map<String, String> userContext); @Override String toString(); static Request newGet(); static Request newFetch(); static Request newPost(); static Request newPut(); static Request newPatch(); static Request newIPatch(); static Request newDelete(); }
Request extends Message { @Override public int getRawCode() { return code == null ? 0 : code.value; } Request(Code code);  Request(Code code, Type type); Code getCode(); @Override int getRawCode(); String getScheme(); void setScheme(String scheme); boolean isMulticast(); @Override boolean isIntendedPayload(); @Override Request setPayload(String payload); @Override Request setPayload(byte[] payload); Request setProxyUri(String proxyUri); boolean hasProxyURI(); Request setProxyScheme(String proxyScheme); Request setURI(final String uri); Request setURI(final URI uri); Request setOptions(final URI uri); void setUriIsApplied(); boolean hasURI(); String getURI(); @Deprecated InetAddress getDestination(); @Deprecated Message setDestination(InetAddress destination); @Deprecated int getDestinationPort(); @Deprecated Message setDestinationPort(int destinationPort); @Deprecated Principal getSenderIdentity(); @Deprecated void prepareDestinationContext(); @Override Request setDestinationContext(EndpointContext peerContext); Request send(); Request send(Endpoint endpoint); final Request setObserve(); final boolean isObserve(); final Request setObserveCancel(); final boolean isObserveCancel(); synchronized Response getResponse(); void setResponse(Response response); Response waitForResponse(); Response waitForResponse(long timeout); @Override void setTimedOut(boolean timedOut); @Override void setCanceled(boolean canceled); @Override void setRejected(boolean rejected); @Override void setSendError(Throwable sendError); Throwable getOnResponseError(); void setOnResponseError(Throwable cause); Map<String, String> getUserContext(); Request setUserContext(Map<String, String> userContext); @Override String toString(); static Request newGet(); static Request newFetch(); static Request newPost(); static Request newPut(); static Request newPatch(); static Request newIPatch(); static Request newDelete();  }