public class RemoteEndpointImpl extends Object implements RemoteEndpoint
| Constructor and Description |
|---|
RemoteEndpointImpl(org.atmosphere.cpr.AtmosphereRequest request,
String body) |
| Modifier and Type | Method and Description |
|---|---|
String |
address()
Return the remote client IP
|
String |
body()
Return a String representation of the request's body
|
Map<String,String> |
headersMap()
Return the HTTP Headers
|
boolean |
isOpen()
Is the underlying connection to the Browser still open.
|
String |
path()
The path matching the associated
PushEndpoint |
String |
pathSegments(int position)
Return the
RemoteEndpoint.path()'s segment value at the specified position, or null if there is no value at that position |
Map<String,String[]> |
queryStrings()
Return the HTTP Query String
|
org.atmosphere.cpr.AtmosphereResource |
resource()
The underlying
AtmosphereResource in case the AtmosphereRequest or AtmosphereResource
is needed |
Status |
status()
The current
Status |
String |
toString() |
org.atmosphere.cpr.AtmosphereResource.TRANSPORT |
transport()
Return the underlying Atmosphere's Transport used.
|
String |
uri()
Return the request URI
|
RemoteEndpoint |
write(byte[] message) |
RemoteEndpoint |
write(String message) |
public RemoteEndpointImpl(org.atmosphere.cpr.AtmosphereRequest request,
String body)
public Map<String,String> headersMap()
RemoteEndpointheadersMap in interface RemoteEndpointpublic Map<String,String[]> queryStrings()
RemoteEndpointqueryStrings in interface RemoteEndpointpublic org.atmosphere.cpr.AtmosphereResource.TRANSPORT transport()
RemoteEndpointtransport in interface RemoteEndpointpublic String path()
RemoteEndpointPushEndpointpath in interface RemoteEndpointpublic String uri()
RemoteEndpointuri in interface RemoteEndpointpublic String body()
RemoteEndpointbody in interface RemoteEndpointpublic Status status()
RemoteEndpointStatusstatus in interface RemoteEndpointStatuspublic String address()
RemoteEndpointaddress in interface RemoteEndpointpublic String pathSegments(int position)
RemoteEndpointRemoteEndpoint.path()'s segment value at the specified position, or null if there is no value at that positionpathSegments in interface RemoteEndpointposition - the path segmentpublic boolean isOpen()
RemoteEndpointisOpen in interface RemoteEndpointpublic RemoteEndpoint write(String message)
public RemoteEndpoint write(byte[] message)
public org.atmosphere.cpr.AtmosphereResource resource()
RemoteEndpointAtmosphereResource in case the AtmosphereRequest or AtmosphereResource
is neededresource in interface RemoteEndpointAtmosphereResourceCopyright © 2018. All rights reserved.