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()
RemoteEndpoint
headersMap
in interface RemoteEndpoint
public Map<String,String[]> queryStrings()
RemoteEndpoint
queryStrings
in interface RemoteEndpoint
public org.atmosphere.cpr.AtmosphereResource.TRANSPORT transport()
RemoteEndpoint
transport
in interface RemoteEndpoint
public String path()
RemoteEndpoint
PushEndpoint
path
in interface RemoteEndpoint
public String uri()
RemoteEndpoint
uri
in interface RemoteEndpoint
public String body()
RemoteEndpoint
body
in interface RemoteEndpoint
public Status status()
RemoteEndpoint
Status
status
in interface RemoteEndpoint
Status
public String address()
RemoteEndpoint
address
in interface RemoteEndpoint
public String pathSegments(int position)
RemoteEndpoint
RemoteEndpoint.path()
's segment value at the specified position, or null if there is no value at that positionpathSegments
in interface RemoteEndpoint
position
- the path segmentpublic boolean isOpen()
RemoteEndpoint
isOpen
in interface RemoteEndpoint
public RemoteEndpoint write(String message)
public RemoteEndpoint write(byte[] message)
public org.atmosphere.cpr.AtmosphereResource resource()
RemoteEndpoint
AtmosphereResource
in case the AtmosphereRequest
or AtmosphereResource
is neededresource
in interface RemoteEndpoint
AtmosphereResource
Copyright © 2015. All rights reserved.